1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-17 00:24:47 +02:00
Commit Graph

34 Commits

Author SHA1 Message Date
Sébastien Helleu 705d86e684 core: update copyright dates 2017-01-01 11:32:04 +01:00
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 3330724574 core: update copyright dates 2016-01-01 11:09:53 +01:00
Sébastien Helleu a56fec820b python: fix cppcheck error on variable "python2_bin" (closes #486)
This fixes only a wrong error report from cppcheck, there was no problem
in code with the variable "python2_bin".
2015-08-13 20:51:51 +02:00
Sébastien Helleu 71dd64678c core: add comments after some #endif 2015-04-30 21:15:30 +02:00
Sébastien Helleu e95f853303 scripts: reset current script pointer when load of script fails in python/perl/ruby/lua/tcl plugins 2015-03-07 09:35:29 +01:00
Sébastien Helleu 79afeb2111 python: fix restore of old interpreter when a function is not found in the script 2015-03-01 09:12:02 +01:00
Sébastien Helleu c1a5a76d08 scripts: reformat some code to make it more readable 2015-02-21 09:16:25 +01:00
Sébastien Helleu 8f11de6863 scripts: improve comments on functions that convert hashtables 2015-02-21 09:12:44 +01:00
Sébastien Helleu cf5501f69c core: add priority in plugins to initialize them in order
Current order is: charset, logger, exec, trigger, aspell, alias, fifo, xfer,
irc, relay, guile/lua/perl/python/ruby/tcl, script.
2015-01-15 07:40:38 +01:00
Sébastien Helleu a020c28ea6 core: update copyright dates 2015-01-01 09:23:23 +01:00
Sébastien Helleu 1ef3237b6b api: return value in function command(), remove WeeChat error after command callback if return code is WEECHAT_RC_ERROR 2014-11-22 08:14:29 +01:00
Sébastien Helleu 3ec3fb4e8d python: fix read of return value for callbacks returning an integer in Python 2.x (closes #125) 2014-07-12 14:51:39 +02:00
Sebastien Helleu 18fd85de7d python: return WEECHAT_RC_ERROR in command /python if arguments are wrong/missing 2014-02-21 13:37:17 +01:00
Sebastien Helleu 5ac3d538b8 python: fix interpreter used after unload of a script 2014-02-17 21:56:21 +01:00
Sebastien Helleu 437767c0ca api: add integer return code for functions hook_{signal|hsignal}_send 2014-02-10 17:42:53 +01:00
Sebastien Helleu 86a99af606 scripts: fix script interpreter used after register during load of script in python/perl/ruby/lua/guile plugins (bug #41345) 2014-01-25 13:04:25 +01:00
Sebastien Helleu 892aa79fb5 core: update copyright dates 2014-01-01 00:14:12 +01:00
Sebastien Helleu 02fc4053c9 python: fix load of scripts with python >= 3.3 2013-11-28 19:46:36 +01:00
Sebastien Helleu 717eaae496 scripts: use #ifdef to check if versions are defined in signal "debug_libs" 2013-11-18 14:32:13 +01:00
Sebastien Helleu 3b53a3a8be core: remove "v" before versions displayed by /debug libs 2013-11-18 07:46:14 +01:00
Sebastien Helleu b63ac8a0f1 scripts: display lib version on signal "debug_libs" 2013-11-17 20:51:54 +01:00
Sebastien Helleu c6fdeaf7e5 python: fix crash when loading scripts with Python 3.x (patch #8044) (thanks to isak) 2013-05-07 08:56:12 +02:00
Sebastien Helleu 149c77decd core: fix typos in many comments and some strings 2013-03-17 12:55:20 +01:00
Sebastien Helleu b60aec975b script: add control of autoload (enable/disable/toggle) (task #12393)
New option script.scripts.autoload, new options autoload/noautoload/toggleautoload
for command /script, new action "A" (meta-A) on script buffer (toggle autoload).
2013-02-25 08:46:41 +01:00
Sebastien Helleu f97598b4aa core: update copyright dates 2013-01-01 13:12:49 +01:00
Sebastien Helleu 7eb5cc4b97 core: move comments with description of C file to top of files 2012-12-15 12:27:57 +01:00
Sebastien Helleu 7d34812f1c core: reformat comments for functions 2012-12-13 18:51:44 +01:00
Sebastien Helleu 32c93b5c0a core: add command /eval, use expression in conditions for bars, add function "string_eval_expression" in plugin API 2012-11-02 09:37:15 +01:00
Simon Arlott 248aa8d73a api: connect with IPv6 by default in hook_connect (with fallback to IPv4), shuffle list of hosts for a same address (task #11205) 2012-10-14 10:59:00 +02:00
Sebastien Helleu 129f32ce8e script: add option script.look.quiet_actions (no messages when installing/removing/loading/unloading scripts on script buffer) 2012-08-21 18:57:49 +02:00
Sebastien Helleu 46bc181933 scripts: add signals for scripts loaded/unloaded/installed/removed 2012-08-08 11:38:27 +02:00
Sebastien Helleu b501fd1b24 scripts: add hdata with list of scripts for each language 2012-08-03 12:13:21 +02:00
Sebastien Helleu 57eb513547 core: remove directory "src/plugins/scripts", move script plugins in "src/plugins" 2012-08-02 22:28:43 +02:00