Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
ecc7edda9e
core: optimize search of options in configuration sections
...
Since options are sorted in sections, it is faster to search from the last
option to the first one.
For configuration files with many options in a single section (like
plugins.conf), the load of configuration file is about 2 to 3x faster.
2019-10-23 19:45:06 +02:00
Sébastien Helleu
9178156354
api: add argument "strip_items" in function string_split
2019-06-15 20:47:14 +02:00
Sébastien Helleu
2b70d71aa1
core: replace argument "keep_eol" by "flags" in function string_split ( closes #1322 )
2019-03-10 18:29:16 +01:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +01:00
Sébastien Helleu
4712d0bb06
core: use https for links to GNU GPL license
2018-11-29 23:16:07 +01:00
Sébastien Helleu
7ee88fb46c
core: fix some styles
2018-01-07 09:11:45 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
0db48c7291
core: add option weechat.look.save_config_with_fsync ( closes #1083 )
...
This makes the save of all configuration files about 20 to 200x slower
(according to the storage device speed); so this is disabled by default.
2017-10-14 07:56:02 +02:00
Sébastien Helleu
f1cd765e1a
core: call the config hook when options are renamed
2017-07-08 14:45:14 +02:00
Sébastien Helleu
8fdd6164ef
core: call the config hook when options are removed
2017-07-08 14:44:28 +02:00
Sébastien Helleu
d71524c582
fset: add ${file}, ${section}, ${option}, add color options
2017-06-25 16:35:27 +02:00
Sébastien Helleu
54bf589d7d
core, plugins: fix conditions to insert elements in linked lists
...
This removes scan-build warnings about dereference of last_xxx null pointers.
2017-06-10 16:21:11 +02:00
Sébastien Helleu
193ff0db37
core: remove unused functions config_file_config_insert and config_file_section_insert_in_config (issue #1012 )
2017-06-09 07:54:27 +02:00
Sébastien Helleu
f6a8c28d2d
api: add function config_option_get_string in plugin API
2017-05-30 20:28:01 +02:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
fe95a1c8a8
core: add a warning in header of configuration files to not edit by hand ( closes #851 )
2016-11-21 22:29:35 +01:00
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
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
c4e3d66ba5
core: add a parent name in options ( closes #629 )
...
Inherited values are now displayed in /set output when the value is
null, if a parent option name is defined in option.
New option: weechat.color.chat_value_null
2015-12-24 07:53:37 +01:00
Sébastien Helleu
bd850398e8
core: add missing comments before functions when the result must be freed after use
2015-07-04 08:24:53 +02:00
Sébastien Helleu
8fc64aaea8
core: remove WeeChat version from config files ( closes #407 )
2015-04-22 22:35:13 +02:00
Sébastien Helleu
32d165f1c4
core: add a welcome message on first WeeChat run ( closes #318 )
2015-04-17 07:57:31 +02:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
65d15042d3
api: fix crash when reading config options with NULL value ( closes #238 )
2014-10-23 21:53:35 +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
56f099bec6
core: sort linked lists with configuration files and sections by name
2014-08-24 19:18:09 +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
7aaf3be15b
api: add argument "flags" in function hdata_new_list
2014-05-24 18:03:14 +02:00
Sebastien Helleu
f09e1c136c
core: remove trailing space in log message when writing a configuration file
2014-03-18 09:25:15 +01:00
Sebastien Helleu
59f4fe05bc
core: fix size used in snprintf when reading a configuration file
2014-02-24 10:41:51 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
8c7b9a1c5e
core: improve error message when a .conf file can not be read, add a second warning about default values used
2013-11-09 10:15:32 +01:00
Sebastien Helleu
05e1e31072
core: create .conf file with default options only if the file does not exist (and not on read error with existing file)
2013-11-09 08:44:48 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00
Peter Boström
a67d97f16e
core: add option "diff" for command /set (list options with changed value)
2012-12-20 18:18:33 +01:00
Sebastien Helleu
2b78673aa9
core: add git version in build, display it in "weechat-curses --help" and /version
2012-12-16 23:07:33 +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
641de51bdb
api: allow creation of structure with hdata_update (allowed for hdata "history")
2012-12-08 23:54:07 +01: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
03a5e8a729
core: free data before removing config file/section/option from lists (remove warning in valgrind about blocks still reachable)
2012-08-14 10:10:46 +02:00
Sebastien Helleu
eab0110732
core: add support of arrays in hdata variables
2012-07-20 18:12:07 +02:00
Sebastien Helleu
0732789f34
core: escape special chars (#[\) in configuration files for name of options (bug #36584 )
2012-06-04 18:14:57 +02:00
Sebastien Helleu
54b45e9c5e
core: support lines of 16 Kb long in configuration files (instead of 1 Kb)
2012-05-11 08:04:19 +02:00
Mateusz Poszwa
59234aef2d
core: fix truncated config files (zero-length) after system crash (bug #36383 )
...
The function config_file_write_internal now performs an overwrite-by-rename
(call to "rename" only) instead of calls to "unlink" then "rename".
2012-05-03 16:10:00 +02:00
Sebastien Helleu
3a2a1ce6f2
core: follow symbolic links when writing configuration files (.conf) (task #11779 )
2012-03-13 18:13:45 +01:00
Sebastien Helleu
47e4a03be6
core: update copyright dates
2012-01-08 18:59:50 +01:00
Sebastien Helleu
e9ef9a9e1b
core: display full line (option + value) for lines with error in configuration files
2011-11-05 16:11:22 +01:00