doc: fix examples for function string_eval_path_home (plugin API reference)
parent
f2b74fabc2
commit
47019c3d15
|
@ -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"
|
||||
----
|
||||
|
||||
|
|
|
@ -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"
|
||||
----
|
||||
|
||||
|
|
|
@ -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"
|
||||
----
|
||||
|
||||
|
|
|
@ -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"
|
||||
----
|
||||
|
||||
|
|
Loading…
Reference in New Issue