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

25 Commits

Author SHA1 Message Date
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 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 9358f076a3 exec: invert a condition to make code more readable 2014-08-09 17:43:45 +02:00
Sébastien Helleu 220682c1bc exec: fix tag stdout/stderr used in command output 2014-04-03 13:11:03 +02:00
Sébastien Helleu 7bff59ed33 exec: remove comment 2014-04-03 13:08:53 +02:00
Sébastien Helleu 7c55cbb38b exec: display output of commands in real time, add options -flush/-noflush in command /exec 2014-04-03 11:55:04 +02:00
Sébastien Helleu 6bf64e979d exec: display command output even if process is killed 2014-04-03 09:19:30 +02:00
Sebastien Helleu 8deb0d3612 exec: add options -nf and -cl/-nocl in command /exec
-nf: create a new buffer with free content
-cl: clear new buffer
-nocl: append in new buffer
2014-03-25 09:25:47 +01:00
Sebastien Helleu 9a51449ee6 exec: add return code ("rc") in hashtable sent with option "-hsignal" 2014-03-16 10:08:08 +01:00
Sebastien Helleu fcf5e84fa4 exec: add values "irc" and "weechat" for option "-color", replace "decode" by "auto" 2014-03-16 09:52:44 +01:00
Sebastien Helleu ffba715ea1 exec: add options "-pipe" and "-hsignal" in command /exec 2014-03-16 09:37:45 +01:00
Sebastien Helleu 112398ee62 exec: fix compilation on OpenBSD
Looks like the variable name "stdout" is a problem on OpenBSD (macro?).
So "stdout" and "stderr" are renamed to "out" an "err".
2014-03-15 15:56:58 +01:00
Sebastien Helleu c92b186e01 exec: rename value "off" to "ansi" for option "-color" in command /exec 2014-03-15 12:43:06 +01:00
Sebastien Helleu 298f0211c1 exec: add option "-color" in command /exec (decode ANSI colors by default)
The ANSI colors are decoded by default to WeeChat colors (for local display),
or IRC colors (if output is sent to buffer with "-o").
2014-03-15 11:30:08 +01:00
Sebastien Helleu 7b31d397b7 exec: add missing empty lines in output of commands
The function weechat_string_split() collapses many separators (here "\n"),
so empty lines were removed and not displayed.

For example, if output is "Line1\n\nEnd\n", the empty line between "Line1"
and "End" was not displayed.
2014-03-13 12:08:33 +01:00
Sebastien Helleu 0eca1fd20b exec: add options "-rc"/"-norc" (display return code) in command /exec 2014-03-13 07:56:20 +01:00
Sebastien Helleu ed6ea18c30 exec: add options "-ln"/"-noln" (line numbers) in command /exec 2014-03-12 19:52:04 +01:00
Sebastien Helleu e8de096625 exec: add options "-n"/"-ns" in command /exec (display output in a new buffer) 2014-03-12 11:54:00 +01:00
Sebastien Helleu 281cfdda94 exec: add option "-bg" in command /exec 2014-03-11 17:51:06 +01:00
Sebastien Helleu 3f50356a14 exec: remove error prefix in case of unexpected end of a command 2014-03-11 17:49:49 +01:00
Sebastien Helleu ee2cb329f4 exec: display command return code after output (stdout/stderr) 2014-03-11 17:49:49 +01:00
Sebastien Helleu 9355c867ed exec: add tag "exec_rc" for line with command return code, remove empty line displayed before 2014-03-11 17:49:49 +01:00
Sebastien Helleu 97254780d6 exec: add exec plugin 2014-03-11 17:49:49 +01:00