Sébastien Helleu
972bd26e5e
core: call "callback_free" in functions arraylist_{remove|clear|free}
...
This fixes a memory leak in completions which are using this callback
to free words in the completion list.
2014-10-17 07:55:21 +02:00
Sébastien Helleu
f62f759c3d
core: add hide of chars in string in evaluation of expressions
...
The syntax is: ${hide:char,string}.
All chars in string are replaced with char (which can be one or more chars).
2014-10-16 20:46:06 +02:00
Sébastien Helleu
9d849db85a
core: move default prefix/suffix for evaluation in wee-eval.h
2014-10-12 18:22:02 +02:00
Sébastien Helleu
b8b5cd26bc
core: remove extra spaces in a comment
2014-10-12 12:02:41 +02:00
Sébastien Helleu
2867996d1f
core: fix search/insert of elements in sorted arraylist with duplicates
...
The pointer and index returned is now the first element found with the value
(with the lower index if there are many elements with same value).
And the index for insert is the last element with same value + 1
(the higher index + 1).
2014-10-11 15:47:09 +02:00
Sébastien Helleu
f53baf628e
Merge branch 'arraylist'
2014-10-05 08:35:17 +02:00
Sébastien Helleu
4d0a9d5b4c
core: remove sort on configuration files and sections
...
The sort was causing bugs because some options were missing while reading
other options, so the order of sections is important, they must not be
sorted.
This is a partial revert of commit 56f099bec6 .
2014-09-29 20:35:25 +02:00
Sébastien Helleu
08d2b9aaeb
core: check that data is not NULL in function string_iconv_fprintf
2014-09-28 08:20:08 +02:00
Sébastien Helleu
f0aa0a21b2
core: optimize completion by using arraylists
...
With arraylist (vs weelist), the completion is about 50x faster.
It is visible on "/help [+tab]".
2014-09-01 11:51:04 +02:00
Sébastien Helleu
8430708fad
core: add comment about argument "index" of function arraylist_search
2014-09-01 11:51:03 +02:00
Sébastien Helleu
41fd4cb254
core: reset data contents in function arraylist_clear if size_alloc_min > 0
2014-09-01 11:51:03 +02:00
Sébastien Helleu
e0f2184987
core: add extra check on arraylist pointer in arraylist functions
2014-09-01 11:51:03 +02:00
Sébastien Helleu
a4dfda9304
core: add functions to manage array lists
2014-09-01 11:51:03 +02:00
Sébastien Helleu
0a641bdf0b
core: add debug functions to measure time spent in code/functions
2014-08-30 16:07:37 +02:00
Sébastien Helleu
421c0752d8
core: fix window/buffer pointers used in command /eval
2014-08-29 19:11:07 +02:00
Sébastien Helleu
dda2170d94
core: add another example of buffer name in /help filter
2014-08-29 18:21:48 +02:00
Sébastien Helleu
7b546bea2e
api: use microseconds instead of milliseconds in functions util_timeval_diff and util_timeval_add
2014-08-29 18:17:27 +02:00
Sébastien Helleu
9fe6ce1cdc
api: fix bug in function hdata_move when absolute value of count is greater than 1
2014-08-27 07:34:54 +02:00
Sébastien Helleu
56f099bec6
core: sort linked lists with configuration files and sections by name
2014-08-24 19:18:09 +02:00
Sébastien Helleu
23ea7cd67d
core: add missing return code in comment of function hook_command_exec
2014-08-23 12:39:02 +02:00
Sébastien Helleu
eac426f625
core: fix error message in case of ambiguous incomplete command
2014-08-23 12:37:01 +02:00
Sébastien Helleu
bde38c87ea
core: fix typo: too much calls -> too many calls
2014-08-23 12:34:04 +02:00
Sébastien Helleu
e887592b78
core: fix typo: unambigous -> unambiguous
2014-08-23 12:30:54 +02:00
Sébastien Helleu
8c586eb49a
core: allow incomplete commands if unambiguous (task #5419 )
2014-08-23 12:13:11 +02:00
Sébastien Helleu
d918c3d1b0
core: fix translation of message displayed after /upgrade
2014-08-16 11:50:15 +02:00
Sébastien Helleu
0f363218b6
core: make argument "errors" optional in function string_replace_with_callback
2014-08-13 07:33:49 +02:00
Andrew Potter
62d891aea9
core: callback_free_key shouldn't point to already free'd value
2014-08-11 22:51:20 +02:00
Sébastien Helleu
4faa227a2d
core: check that callback is not NULL in function string_replace_with_callback
2014-08-11 07:47:55 +02:00
Sébastien Helleu
93d472e3d0
core: fix potential crash in case of malloc error when resetting config option
2014-08-10 15:51:35 +02:00
Sébastien Helleu
890a9e54be
core: remove dead assignment in function hook_process_child
2014-08-10 15:50:18 +02:00
Sébastien Helleu
15bb7656a5
core: remove dead assignment in function hook_command_exec
2014-08-10 15:50:18 +02:00
Sébastien Helleu
068776b5a7
core: fix zero-length malloc of an hashtable item with type "buffer"
2014-08-10 13:42:48 +02:00
Sébastien Helleu
53a9a161f4
core: fix memory leak on /upgrade when file signature in upgrade file is invalid
2014-08-10 10:52:04 +02:00
Sébastien Helleu
27dd6cf72f
core: fix memory leak in completion of config options values
2014-08-09 23:17:25 +02:00
Sébastien Helleu
fc71ce0d43
core: fix bug with several arguments for command /buffer clear|hide|unhide
2014-08-09 18:19:27 +02:00
Sébastien Helleu
5597c93b64
core: check that regex is not NULL in function string_replace_regex
2014-08-08 07:33:37 +02:00
Sébastien Helleu
e7b604c97e
core: fix example in comment of function string_replace_regex
2014-08-07 07:48:15 +02:00
Sébastien Helleu
124b2668fe
core: display warning on $TERM only if it doesn't start with "screen" (under screen/tmux)
2014-08-03 14:11:58 +02:00
Sébastien Helleu
cf3e0ccbfd
core: fix result of hash function (in hashtables) on 32-bit systems
2014-08-02 16:53:12 +02:00
Sébastien Helleu
8a93906beb
api: fix function string_decode_base64
...
The result of function was sometimes wrong, for example base64 decoding of
"YWJj" was returning "ab" instead of "abc".
2014-08-02 16:52:17 +02:00
Sébastien Helleu
d046315e8b
api: fix function string_format_size on 32-bit systems
2014-08-02 11:44:15 +02:00
Sébastien Helleu
d2dc05b01e
core: check that from/to arguments are not NULL in base16/64 functions
2014-07-30 07:44:25 +02:00
Sébastien Helleu
3d6b9ff5a7
tests: add tests of function string_is_word_char
2014-07-29 07:39:30 +02:00
Sébastien Helleu
3ffbb85cb9
core: check that string is not NULL in function string_input_for_buffer
2014-07-28 08:27:16 +02:00
Sébastien Helleu
12c8cd4988
core: check that string is not NULL in function string_iconv
2014-07-27 08:34:34 +02:00
Sébastien Helleu
0693ffb82b
core: fix compilation warning on GNU/Hurd about unsigned long numbers
2014-07-25 22:23:46 +02:00
Sébastien Helleu
db01880bd1
core: add comments in translations for file size units
2014-07-25 20:40:38 +02:00
Sébastien Helleu
f227e9ec3e
core: add terabyte unit for size displayed
2014-07-25 07:57:48 +02:00
Sébastien Helleu
45f1b6bfc5
core: fix code style in function utf8_is_valid()
2014-07-20 15:50:12 +02:00
Sébastien Helleu
1e669e4b1e
Merge branch 'master' of git://github.com/anders/weechat into anders-master
2014-07-20 12:41:39 +02:00