1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00
Commit Graph

53 Commits

Author SHA1 Message Date
Sébastien Helleu eb86def400 core: rename function string_iconv_fprintf to string_fprintf 2016-07-09 18:28:03 +02: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 08929d91dc core: fix long lines 2016-02-22 23:17:35 +01:00
Sébastien Helleu 3330724574 core: update copyright dates 2016-01-01 11:09:53 +01:00
Sébastien Helleu 80872061c2 core: add variables with count of hooks 2015-07-15 23:55:00 +02:00
Sébastien Helleu 71dd64678c core: add comments after some #endif 2015-04-30 21:15:30 +02:00
Sébastien Helleu a020c28ea6 core: update copyright dates 2015-01-01 09:23:23 +01:00
Sébastien Helleu 0a641bdf0b core: add debug functions to measure time spent in code/functions 2014-08-30 16:07:37 +02:00
Sebastien Helleu f82fe29ac3 core: update the message displayed on crash
Add a reference to user's guide, do not ask user to send the crash log
file any more (it may have private data and is not needed in most cases).
2014-03-18 15:22:15 +01:00
Sebastien Helleu 892aa79fb5 core: update copyright dates 2014-01-01 00:14:12 +01:00
Sebastien Helleu fba9839587 core: use #ifdef to check if versions are defined in signal "debug_libs" 2013-11-18 14:31:26 +01:00
Sebastien Helleu 3b53a3a8be core: remove "v" before versions displayed by /debug libs 2013-11-18 07:46:14 +01:00
Sebastien Helleu 8d64b658df core: add option "libs" for command /debug, add signal "debug_libs" 2013-11-17 20:49:37 +01:00
Sebastien Helleu 47213a9869 core: remove obsolete signals "debug_buffer" and "debug_windows" 2013-11-17 11:48:00 +01:00
Sebastien Helleu 663de42284 Merge branch 'secured-data' 2013-08-02 19:19:25 +02:00
Sebastien Helleu 996da2f662 core: rename binary and man page from "weechat-curses" to "weechat" (task #11027)
A symbolic link weechat-curses -> weechat is now created (by both cmake and
configure), so that the /upgrade will work from an old version.

However, if you upgrade from an old version, it is recommended to force the use
of the new binary name with the command: `/upgrade /path/to/weechat` (replace
the path accordingly).
2013-08-02 08:54:16 +02:00
Sebastien Helleu b3923b65f1 core: use variable "items_count" directly from hashtable without calling function hashtable_get_integer 2013-07-30 10:10:37 +02:00
Sebastien Helleu 149c77decd core: fix typos in many comments and some strings 2013-03-17 12:55:20 +01:00
Sebastien Helleu 01153cd478 core: add option "dirs" for command /debug 2013-02-14 20:45:12 +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 3ec0ad7c62 core: remove duplicated #include 2012-10-21 19:43:12 +02:00
Sebastien Helleu df80aa5fc9 api: allow update for some variables of hdata, add new functions hdata_update and hdata_set 2012-08-27 09:47:46 +02:00
Sebastien Helleu 47e4a03be6 core: update copyright dates 2012-01-08 18:59:50 +01:00
Sebastien Helleu 15d9aab7fa core: add option "hooks" for command /debug 2011-12-07 17:43:36 +01:00
Sebastien Helleu dfdf42e27b core: remove unneeded whitespace 2011-10-26 20:37:03 +02:00
Sebastien Helleu 3bea55b2f0 core: add context "search" for keys (to define keys used during search in buffer with ctrl+"r") 2011-07-05 15:36:42 +02:00
Sebastien Helleu 19bc95b961 core: many improvements on hdata
New features:
- add optional hdata name for variables in hdata
- add plugin API functions: hdata_get_var_hdata
- use hashtable to store hdata (created by WeeChat and plugins)
- free hdata and infolists created by plugin on plugin unload
- free all hdata on exit
- add "free" option to command /debug hdata
- remove hdata for hooks
2011-06-26 18:15:42 +02:00
Sebastien Helleu c8b2a6a084 core: add "hdata" (direct access to WeeChat/plugin data) 2011-06-13 12:32:27 +02:00
Sebastien Helleu 35120b633c core: add option "infolists" for command /debug 2011-06-01 09:07:17 +02:00
Sebastien Helleu 5fde03f7fc core: improve output of /debug windows 2011-05-07 17:17:13 +02:00
Sebastien Helleu a63de084cf Fix typo in /debug windows 2011-02-21 19:34:19 +01:00
Sebastien Helleu 2ef6fdb2a1 Add option "memory" to command /debug 2011-02-10 18:37:12 +01:00
Sebastien Helleu d24f6e9e17 Update copyright dates 2011-01-01 18:06:29 +01:00
Sebastien Helleu 8b26f3c953 Add optional plugin name for command /debug dump and signal "debug_dump" 2010-09-17 16:12:41 +02:00
Sebastien Helleu 6562d676fe Update licenses and copyrights, add missing author names in sources 2010-06-22 19:46:28 +02:00
Sebastien Helleu 31bfcf96c7 Reformat and add comments for description of C sources 2010-04-08 18:15:00 +02:00
Sebastien Helleu 2133eb30ff Update copyright dates 2010-01-03 19:31:55 +01:00
Sebastien Helleu 48f087b883 Add option "term" for command /debug: display infos about terminal and available colors 2009-12-16 12:18:00 +01:00
Sebastien Helleu 0a8077f0d6 Remove time in weechat.log file when dumping data (crash or user is asking dump) 2009-04-26 09:43:06 +02:00
Sebastien Helleu 88aa905ee3 Remove unused functions and prototypes 2009-01-04 01:05:33 +01:00
Sebastien Helleu 2115f3f675 Update copyright dates 2009-01-03 10:06:53 +01:00
Sebastien Helleu d32b22f76f Fix bug with pointer conversions on 64 bits architecture 2008-11-04 15:34:44 +01:00
Sebastien Helleu 2ffd141cf4 Add new /layout command and save_layout_on_exit config option, to save/restore windows and buffers order (task #5453) 2008-10-02 18:03:27 +02:00
Sebastien Helleu b76d7e4a5c Reintroduce /upgrade command, working only with core and IRC plugin today
Command will be improved in near future and other plugins like xfer
will be modified to manage upgrade process.
2008-08-19 23:22:52 +02:00
Sebastien Helleu 3a53257032 Add "const" keyword for some "char *" function arguments (core and plugins API) 2008-06-03 10:56:51 +02:00
Sebastien Helleu 72721d7205 Do not clean all GUI objects when crashing after SIGSEGV (this can cause crash inside crash!) 2008-05-06 17:30:13 +02:00
Sebastien Helleu dae4068a0e Added keys by buffer (useful for buffers with free content that need own keys)
These keys can be set thru API function "buffer_set", for example:
weechat_buffer_set(my_buffer, "key_bind_meta2-A", "/mycommand up");
weechat_buffer_set(my_buffer, "key_bind_meta2-B", "/mycommand down");
weechat_buffer_set(my_buffer, "key_unbind_meta2-B", "");
weechat_buffer_set(my_buffer, "key_unbind_*", "");
These keys are volatile and not saved in any config file. So they must be set
when buffer is open.
2008-04-15 16:40:08 +02:00
Sebastien Helleu 61ca929728 Added tags for lines and custom filtering by tags or regex (task #7674), fixed many memory leaks 2008-03-22 23:36:12 +01:00