Sébastien Helleu
cf6aca1619
core: add pointer in some callbacks ( closes #406 )
...
This pointer is the first argument received by callbacks, and the
existing argument "data" is now automatically freed by WeeChat when the
object containing the callback is removed.
With this new pointer, the linked list of callbacks in scripts has been
removed. This will improve speed of scripts (using a lot of hooks),
reduce memory used by scripts and reduce time to unload scripts.
Following functions are affected in the C API:
* exec_on_files
* config_new
* config_new_section
* config_new_option
* hook_command
* hook_command_run
* hook_timer
* hook_fd
* hook_process
* hook_process_hashtable
* hook_connect
* hook_print
* hook_signal
* hook_hsignal
* hook_config
* hook_completion
* hook_modifier
* hook_info
* hook_info_hashtable
* hook_infolist
* hook_hdata
* hook_focus
* unhook_all_plugin
* buffer_new
* bar_item_new
* upgrade_new
* upgrade_read
2016-03-21 18:11:21 +01:00
Sébastien Helleu
50817054f9
tests: add tests on string_split() with keep_eol set to 2
2016-01-23 10:35:07 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
57b6e320d3
core: fix execution of empty command name
...
The strings "/" and "/ " are not considered as valid commands any more.
2015-12-31 19:07:14 +01:00
Sébastien Helleu
a60075fb39
tests: temporary disable check of javascript plugin
...
The compilation with autotools fails to detect v8 lib (used by
javascript plugin) on Ubuntu Trusty, so the tests are failing because
javascript plugins is not loaded.
This check will be enabled again when autotools compilation will be
fixed.
2015-12-25 12:02:34 +01:00
Sébastien Helleu
0cda820807
tests: fix compilation with autotools
2015-12-24 23:07:47 +01:00
Sébastien Helleu
415dea5c74
tests: fix locale used to execute tests
2015-12-24 22:48:10 +01:00
Sébastien Helleu
6ff8de5740
tests: check if all plugins are loaded
2015-12-24 22:21:33 +01:00
Mikaela Suomalainen
9f049afb18
core: use Ubuntu Trusty for tests (Travis CI)
...
The Debian package libcpputest-dev becomes useless as it's available in
the repositories now.
2015-12-20 07:57:36 +01:00
Sébastien Helleu
41cb1bf635
api: fix handle of invalid escape in function string_convert_escaped_chars()
...
And a new test is now checking that "\" returns "".
2015-08-24 11:05:31 +02:00
Sébastien Helleu
951d1f91a4
api: add function string_hex_dump()
2015-08-22 09:30:08 +02:00
Sébastien Helleu
46a9d17ac3
api: add argument "length" in function utf8_is_valid()
2015-08-18 07:36:48 +02:00
Sébastien Helleu
4ecd8a505f
api: fix type of value returned by functions utf8_prev_char, utf8_next_char and utf8_add_offset
2015-07-04 08:39:55 +02:00
Sébastien Helleu
9bf40517d3
api: add support of evaluated sub-strings and current date/time in function string_eval_expression() and command /eval
2015-06-30 20:25:35 +02:00
Sébastien Helleu
2bd2d74a07
api: add function string_eval_path_home()
2015-06-24 07:54:42 +02:00
Sébastien Helleu
9e0fa27525
tests: add package libcpputest-dev for ubuntu/precise (Travis CI)
2015-06-14 14:32:22 +02:00
Sébastien Helleu
3262599413
core: make cpputest optional in cmake compilation
...
With this fix, WeeChat can be built without tests (if cpputest is not found),
without having to explicitely disable tests ("-DENABLE_TESTS=OFF").
2015-05-17 14:58:10 +02:00
Sébastien Helleu
d322389e04
core: add support of full color option name in command /eval and API function string_eval_expression()
2015-04-26 10:29:30 +02:00
Sébastien Helleu
b2a68af077
core: add options weechat.look.word_chars_{highlight|input} ( closes #55 , task #9459 )
2015-04-11 18:53:44 +02:00
Sébastien Helleu
8b056d7d24
tests: check that function string_strndup returns NULL if the given string is NULL
2015-03-22 11:14:12 +01:00
Sébastien Helleu
cace7471f0
tests: remove compiler warnings about unused parameters
2015-03-06 19:24:24 +01:00
Sébastien Helleu
3eb6cd3cd9
tests: remove unused variables
2015-03-03 07:43:23 +01:00
Sébastien Helleu
f6941c20eb
tests: remove unused variable
2015-03-02 21:15:23 +01:00
Sébastien Helleu
07c7ecb679
tests: add tests on weelist functions
2015-02-13 08:00:09 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
0cd2aff765
core: use https for WeeChat URLs
2014-12-13 09:16:09 +01:00
Sébastien Helleu
7818e08964
tests: fix compilation of tests with clang ( closes #275 )
2014-12-10 21:15:40 +01:00
Sébastien Helleu
b460055f78
tests: add tests of regex replace with empty regex or regex_replace
2014-11-23 08:32:52 +01:00
Sébastien Helleu
e253a2509a
tests: add hashtable tests with multiple items giving same hashed key
2014-11-18 20:12:25 +01:00
Sébastien Helleu
0d1abd3899
tests: add tests of functions string_shared_get and string_shared_free
2014-11-03 20:52:02 +01:00
Sébastien Helleu
633a32ccd3
api: add regex replace feature in function string_eval_expression
2014-10-22 21:19:54 +02:00
Sébastien Helleu
5f98f20c94
tests: fix memory leak in hashtable tests
2014-10-16 20:46:31 +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
45a0bfe1b3
tests: add test of function string_split_shell with an empty string
2014-10-12 18:09:57 +02:00
Sébastien Helleu
9249738582
tests: add extra check of argv pointer in test of string_split functions
2014-10-12 18:09:04 +02:00
Sébastien Helleu
8b23106145
tests: initialize argc to -1 instead of 1 before some tests
2014-10-12 18:07:53 +02:00
Sébastien Helleu
5014231818
tests: add some tests on function eval_expression
2014-10-12 17:58:13 +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
4c49113036
tests: add tests of hashtable functions
2014-09-03 07:38:46 +02:00
Sébastien Helleu
dda1a66fd7
tests: add tests of arraylist functions
2014-09-01 11:51:04 +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
5424c5f9de
core: fix build of tests with autotools
2014-08-25 20:26:19 +02:00
Sébastien Helleu
f39b37351c
tests: fix build of tests when the build directory is outside source tree ( closes #178 )
2014-08-25 07:38:38 +02:00
Sébastien Helleu
bc34c3cfc2
tests: fix memory leak in tests launcher
2014-08-15 15:08:31 +02:00
Sébastien Helleu
dcf46a2ca0
tests: read WeeChat command line arguments in environment variable "WEECHAT_TESTS_ARGS"
2014-08-14 19:15:25 +02:00
Sébastien Helleu
99b7aa9d27
tests: fix memory leaks
2014-08-14 19:13:32 +02:00
Sébastien Helleu
00e79af39c
tests: add tests of function string_split_shell
2014-08-14 19:12:00 +02:00
Sébastien Helleu
328eeee5e1
tests: add partial tests of functions hashtable_set*
2014-08-14 19:09:27 +02:00
Sébastien Helleu
346fb62cf6
tests: don't install binary "tests" with autotools
2014-08-14 19:06:21 +02:00