diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-09-27 07:31:13 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-09-27 07:31:13 +0200 |
commit | 47019c3d158890a92a421e481f3aa84b7e26adfb (patch) | |
tree | 387332eb6d24e5343d24778a5400399aaab0b091 | |
parent | f2b74fabc252db934cde376de25f0042a313f084 (diff) | |
download | weechat-47019c3d158890a92a421e481f3aa84b7e26adfb.zip |
doc: fix examples for function string_eval_path_home (plugin API reference)
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 4 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 4 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 4 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index d20976177..0765f04ac 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -962,7 +962,7 @@ C example: [source,C] ---- -char *str = weechat_string_expand_home ("%h/test"); +char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL); /* result: "/home/xxx/.weechat/test" */ /* ... */ free (str); @@ -976,7 +976,7 @@ Script (Python): path = weechat.string_eval_path_home(path, pointers, extra_vars, options) # example -path = weechat.string_eval_path_home("%h/test", "", "", "") +path = weechat.string_eval_path_home("%h/test", {}, {}, {}) # path == "/home/xxx/.weechat/test" ---- diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 01ae64f85..4b9dedc45 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -974,7 +974,7 @@ Exemple en C : [source,C] ---- -char *str = weechat_string_expand_home ("%h/test"); +char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL); /* résultat : "/home/xxx/.weechat/test" */ /* ... */ free (str); @@ -988,7 +988,7 @@ Script (Python) : path = weechat.string_eval_path_home(path, pointers, extra_vars, options) # exemple -path = weechat.string_eval_path_home("%h/test", "", "", "") +path = weechat.string_eval_path_home("%h/test", {}, {}, {}) # path == "/home/xxx/.weechat/test" ---- diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 969b0e405..1179e8e22 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -1006,7 +1006,7 @@ Esempio in C: [source,C] ---- -char *str = weechat_string_expand_home ("%h/test"); +char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL); /* result: "/home/xxx/.weechat/test" */ /* ... */ free (str); @@ -1020,7 +1020,7 @@ Script (Python): path = weechat.string_eval_path_home(path, pointers, extra_vars, options) # esempio -path = weechat.string_eval_path_home("%h/test", "", "", "") +path = weechat.string_eval_path_home("%h/test", {}, {}, {}) # path == "/home/xxx/.weechat/test" ---- diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 3f69e2965..6d2d7f4e3 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -968,7 +968,7 @@ C 言語での使用例: [source,C] ---- -char *str = weechat_string_expand_home ("%h/test"); +char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL); /* result: "/home/xxx/.weechat/test" */ /* ... */ free (str); @@ -982,7 +982,7 @@ free (str); path = weechat.string_eval_path_home(path, pointers, extra_vars, options) # 例 -path = weechat.string_eval_path_home("%h/test", "", "", "") +path = weechat.string_eval_path_home("%h/test", {}, {}, {}) # path == "/home/xxx/.weechat/test" ---- |