diff options
author | wm4 <wm4@nowhere> | 2013-10-18 22:09:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-18 22:38:10 +0200 |
commit | e046fa584a5fd695e652570725cab5eb6ef5c17d (patch) | |
tree | 83818adb14ef535316910f833dd1083d3d2e54f2 /mpvcore/mp_msg.h | |
parent | fd0ffa7b40b8b2fa038e5748cadda35092530a49 (diff) | |
download | mpv-e046fa584a5fd695e652570725cab5eb6ef5c17d.tar.bz2 mpv-e046fa584a5fd695e652570725cab5eb6ef5c17d.tar.xz |
mp_msg: remove gettext() support
Was disabled by default, was never used, internal support was
inconsistent and poor, and there has been virtually no interest in
creating translations.
And I don't even think that a terminal program should be translated.
This is something for (hypothetical) GUIs.
Diffstat (limited to 'mpvcore/mp_msg.h')
-rw-r--r-- | mpvcore/mp_msg.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mpvcore/mp_msg.h b/mpvcore/mp_msg.h index 7868d9c89d..4c5b6eabfb 100644 --- a/mpvcore/mp_msg.h +++ b/mpvcore/mp_msg.h @@ -137,12 +137,12 @@ bool mp_msg_test_log(struct mp_log *log, int lev); #include "config.h" #include "mpvcore/mp_common.h" -char *mp_gtext(const char *string); +#define mp_gtext(x) ((char*)(x)) // Note: using mp_msg_log or the MP_ERR/... macros is preferred. void mp_msg_va(int mod, int lev, const char *format, va_list va); void mp_msg(int mod, int lev, const char *format, ... ) PRINTF_ATTRIBUTE(3, 4); -void mp_tmsg(int mod, int lev, const char *format, ... ) PRINTF_ATTRIBUTE(3, 4); +#define mp_tmsg mp_msg #define mp_dbg mp_msg struct mp_log *mp_log_new(void *talloc_ctx, struct mp_log *parent, @@ -150,8 +150,6 @@ struct mp_log *mp_log_new(void *talloc_ctx, struct mp_log *parent, void mp_msg_log(struct mp_log *log, int lev, const char *format, ...) PRINTF_ATTRIBUTE(3, 4); -void mp_tmsg_log(struct mp_log *log, int lev, const char *format, ...) - PRINTF_ATTRIBUTE(3, 4); // Convenience macros, typically called with a pointer to a context struct // as first argument, which has a "struct mp_log log;" member. |