mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[msgbox] const char *
This commit is contained in:
parent
d20216cf53
commit
4b5c9a4e21
@ -118,7 +118,7 @@ msg_text_do(char *format, va_list ap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
msg_text(struct terminal *term, char *format, ...)
|
msg_text(struct terminal *term, const char *format, ...)
|
||||||
{
|
{
|
||||||
char *info;
|
char *info;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
@ -121,7 +121,7 @@ msg_box(struct terminal *term, struct memory_list *mem_list,
|
|||||||
* This one automagically localizes the format string. The possible
|
* This one automagically localizes the format string. The possible
|
||||||
* additional parameters still need to be localized manually at the user's
|
* additional parameters still need to be localized manually at the user's
|
||||||
* side. */
|
* side. */
|
||||||
char *msg_text(struct terminal *term, char *format, ...);
|
char *msg_text(struct terminal *term, const char *format, ...);
|
||||||
|
|
||||||
/* A periodically refreshed message box with one OK button. The text in the
|
/* A periodically refreshed message box with one OK button. The text in the
|
||||||
* message box is updated using the get_info() function. If get_info() returns
|
* message box is updated using the get_info() function. If get_info() returns
|
||||||
|
@ -95,11 +95,11 @@ intl_set_charset(struct terminal *term)
|
|||||||
* about charset (usually during initialization or when you don't use terminals
|
* about charset (usually during initialization or when you don't use terminals
|
||||||
* at all), use gettext() directly. */
|
* at all), use gettext() directly. */
|
||||||
static inline char *
|
static inline char *
|
||||||
_(char *msg, struct terminal *term)
|
_(const char *msg, struct terminal *term)
|
||||||
{
|
{
|
||||||
/* Prevent useless (and possibly dangerous) calls. */
|
/* Prevent useless (and possibly dangerous) calls. */
|
||||||
if (!msg || !*msg)
|
if (!msg || !*msg)
|
||||||
return msg;
|
return (char *)msg;
|
||||||
|
|
||||||
if (term) intl_set_charset(term);
|
if (term) intl_set_charset(term);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user