mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
core: rename argument "length" to "bytes" in function string_strndup (header files)
Argument was already renamed in commit f8915129bf
but it was incomplete (missing header files).
This commit is contained in:
@@ -36,7 +36,7 @@ struct t_string_dyn
|
||||
|
||||
struct t_hashtable;
|
||||
|
||||
extern char *string_strndup (const char *string, int length);
|
||||
extern char *string_strndup (const char *string, int bytes);
|
||||
extern char *string_cut (const char *string, int length, int count_suffix,
|
||||
int screen, const char *cut_suffix);
|
||||
extern char *string_reverse (const char *string);
|
||||
|
||||
@@ -284,7 +284,7 @@ struct t_weechat_plugin
|
||||
char *(*iconv_from_internal) (const char *charset, const char *string);
|
||||
const char *(*gettext) (const char *string);
|
||||
const char *(*ngettext) (const char *single, const char *plural, int count);
|
||||
char *(*strndup) (const char *string, int length);
|
||||
char *(*strndup) (const char *string, int bytes);
|
||||
char *(*string_cut) (const char *string, int length, int count_suffix,
|
||||
int screen, const char *cut_suffix);
|
||||
void (*string_tolower) (char *string);
|
||||
@@ -1213,8 +1213,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
|
||||
#define weechat_gettext(string) (weechat_plugin->gettext)(string)
|
||||
#define weechat_ngettext(single,plural,number) \
|
||||
(weechat_plugin->ngettext)(single, plural, number)
|
||||
#define weechat_strndup(__string, __length) \
|
||||
(weechat_plugin->strndup)(__string, __length)
|
||||
#define weechat_strndup(__string, __bytes) \
|
||||
(weechat_plugin->strndup)(__string, __bytes)
|
||||
#define weechat_string_cut(__string, __length, __count_suffix, \
|
||||
__screen, __cut_suffix) \
|
||||
(weechat_plugin->string_cut)(__string, __length, __count_suffix, \
|
||||
|
||||
Reference in New Issue
Block a user