diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-30 13:33:12 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-01 11:51:03 +0200 |
commit | 8430708fad6118ec3029e2614dd079556df6dba1 (patch) | |
tree | 52556b61289ea961656b83afcf0786a6a4b7a055 | |
parent | 41fd4cb254505669e473316f506030505bf33a66 (diff) | |
download | weechat-8430708fad6118ec3029e2614dd079556df6dba1.zip |
core: add comment about argument "index" of function arraylist_search
-rw-r--r-- | src/core/wee-arraylist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/wee-arraylist.c b/src/core/wee-arraylist.c index d2cba4b15..fbbbbef7d 100644 --- a/src/core/wee-arraylist.c +++ b/src/core/wee-arraylist.c @@ -416,6 +416,9 @@ arraylist_search (struct t_arraylist *arraylist, void *pointer, * If the index is negative and that the arraylist is not sorted, the element * is added at the end of arraylist. * + * If the arraylist is sorted, the argument "index" is ignored (the element + * will be inserted at appropriate position, to keep arraylist sorted). + * * Returns the index of the new element (>= 0) or -1 if error. */ |