summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-03-30 20:35:16 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-03-30 20:35:16 +0200
commit467f482ea6653127d49ea7b6c487f9d51929d232 (patch)
treeb32bdd6776078c84adf5ac5bf193d649e26ba7c0 /doc
parent0436fff31b5ef7814391dd1a666cccfaa0f2ff67 (diff)
downloadweechat-467f482ea6653127d49ea7b6c487f9d51929d232.zip
core: make "callback_cmp" optional in call to function arraylist_new()
If no callback is given, a default callback is used, which just compares pointers.
Diffstat (limited to 'doc')
-rw-r--r--doc/en/weechat_plugin_api.en.adoc3
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc4
-rw-r--r--doc/it/weechat_plugin_api.it.adoc3
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc4
4 files changed, 9 insertions, 5 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 08978f590..d4e1e9630 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -3875,7 +3875,8 @@ Arguments:
* _sorted_: 1 to sort the array list, 0 for no sort
* _allow_duplicates_: 1 to allow duplicate entries, 0 to prevent a same entry
to be added again
-* _callback_cmp_: callback used to compare two items, arguments and return value:
+* _callback_cmp_: callback used to compare two items (optional), arguments and
+ return value:
** _void *data_: pointer
** _struct t_arraylist *arraylist_: array list pointer
** _void *pointer1_: pointer to first item
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index 52d677356..a2fea8a0d 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -3937,8 +3937,8 @@ Paramètres :
* _sorted_ : 1 pour trier la liste avec tableau, 0 pour ne pas trier
* _allow_duplicates_ : 1 pour autoriser les entrées dupliquées, 0 pour empêcher
une même entrée d'être ajoutée à nouveau
-* _callback_cmp_ : fonction appelée pour comparer deux éléments, paramètres et
- valeur de retour :
+* _callback_cmp_ : fonction appelée pour comparer deux éléments (optionnelle),
+ paramètres et valeur de retour :
** _void *data_ : pointeur
** _struct t_arraylist *arraylist_ : pointeur vers la liste avec tableau
** _void *pointer1_ : pointeur vers le premier élément
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc
index a44ba714f..31e610f08 100644
--- a/doc/it/weechat_plugin_api.it.adoc
+++ b/doc/it/weechat_plugin_api.it.adoc
@@ -4006,7 +4006,8 @@ Argomenti:
* _sorted_: 1 to sort the array list, 0 for no sort
* _allow_duplicates_: 1 to allow duplicate entries, 0 to prevent a same entry
to be added again
-* _callback_cmp_: callback used to compare two items, arguments and return value:
+* _callback_cmp_: callback used to compare two items (optional), arguments and
+ return value:
** _void *data_: pointer
** _struct t_arraylist *arraylist_: array list pointer
** _void *pointer1_: pointer to first item
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 923d8611b..12e89b394 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -3882,7 +3882,9 @@ struct t_arraylist *weechat_arraylist_new (int initial_size,
* _sorted_: 1 の場合には配列リストをソートし、0 の場合にはソートしません
* _allow_duplicates_: 1 の場合にはエントリの重複を許可し、0
の場合にはエントリが重複して追加されることを防ぎます
-* _callback_cmp_: 2 つの要素を比較する際に使われるコールバック、引数と戻り値は以下:
+// TRANSLATION MISSING
+* _callback_cmp_: callback used to compare two items (optional), arguments and
+ return value:
** _void *data_: ポインタ
** _struct t_arraylist *arraylist_: 配列リストポインタ
** _void *pointer1_: 1 番目の要素へのポインタ