diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-06-28 00:47:37 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-06-28 00:47:37 +0200 |
commit | 26919fe58ba16b950ef31064133a3169f0873df7 (patch) | |
tree | 5ca7b48a84bd14667bf87152c796130ee82e33bc /src/plugins/weechat-plugin.h | |
parent | 23f111329e621a39c54b11f9a6dfb5e15160d103 (diff) | |
download | weechat-26919fe58ba16b950ef31064133a3169f0873df7.zip |
Add french translation of Plugin API Reference
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r-- | src/plugins/weechat-plugin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index ea84b1176..4de2335d7 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -187,7 +187,7 @@ struct t_weechat_plugin char *(*utf8_add_offset) (const char *string, int offset); int (*utf8_real_pos) (const char *string, int pos); int (*utf8_pos) (const char *string, int real_pos); - char *(*utf8_strndup) (const char *string, int max_chars); + char *(*utf8_strndup) (const char *string, int length); /* directories */ int (*mkdir_home) (const char *directory, int mode); @@ -743,6 +743,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); weechat_plugin->utf8_real_pos(__string, __pos) #define weechat_utf8_pos(__string, __real_pos) \ weechat_plugin->utf8_pos(__string, __real_pos) +#define weechat_utf8_strndup(__string, __length) \ + weechat_plugin->utf8_strndup(__string, __length) /* directories */ #define weechat_mkdir_home(__directory, __mode) \ |