summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-eval.c4
-rw-r--r--src/core/wee-hdata.c6
-rw-r--r--src/gui/gui-bar.c4
-rw-r--r--src/gui/gui-buffer.c4
-rw-r--r--src/gui/gui-color.c4
-rw-r--r--src/plugins/irc/irc-config.c12
-rw-r--r--src/plugins/irc/irc-message.c4
-rw-r--r--src/plugins/irc/irc-protocol.c2
-rw-r--r--src/plugins/irc/irc-redirect.c4
-rw-r--r--src/plugins/irc/irc-server.c8
-rw-r--r--src/plugins/relay/irc/relay-irc.c6
-rw-r--r--src/plugins/relay/relay-config.c2
-rw-r--r--src/plugins/relay/weechat/relay-weechat.c8
-rw-r--r--src/plugins/script/script-action.c4
-rw-r--r--src/plugins/script/script-repo.c6
-rw-r--r--src/plugins/script/script.c2
16 files changed, 40 insertions, 40 deletions
diff --git a/src/core/wee-eval.c b/src/core/wee-eval.c
index b8ad21c5e..1f2c23c32 100644
--- a/src/core/wee-eval.c
+++ b/src/core/wee-eval.c
@@ -694,7 +694,7 @@ eval_expression (const char *expr, struct t_hashtable *pointers,
/* create hashtable pointers if it's NULL */
if (!pointers)
{
- pointers = hashtable_new (16,
+ pointers = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_POINTER,
NULL,
@@ -723,7 +723,7 @@ eval_expression (const char *expr, struct t_hashtable *pointers,
/* create hashtable extra_vars if it's NULL */
if (!extra_vars)
{
- extra_vars = hashtable_new (16,
+ extra_vars = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/core/wee-hdata.c b/src/core/wee-hdata.c
index 6524a6f76..9e9800210 100644
--- a/src/core/wee-hdata.c
+++ b/src/core/wee-hdata.c
@@ -93,7 +93,7 @@ hdata_new (struct t_weechat_plugin *plugin, const char *hdata_name,
new_hdata->plugin = plugin;
new_hdata->var_prev = (var_prev) ? strdup (var_prev) : NULL;
new_hdata->var_next = (var_next) ? strdup (var_next) : NULL;
- new_hdata->hash_var = hashtable_new (16,
+ new_hdata->hash_var = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_POINTER,
NULL,
@@ -101,7 +101,7 @@ hdata_new (struct t_weechat_plugin *plugin, const char *hdata_name,
hashtable_set_pointer (new_hdata->hash_var,
"callback_free_value",
&hdata_free_var);
- new_hdata->hash_list = hashtable_new (16,
+ new_hdata->hash_list = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_POINTER,
NULL,
@@ -1039,7 +1039,7 @@ hdata_print_log ()
void
hdata_init ()
{
- weechat_hdata = hashtable_new (16,
+ weechat_hdata = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_POINTER,
NULL,
diff --git a/src/gui/gui-bar.c b/src/gui/gui-bar.c
index 0e4f373d2..725afba60 100644
--- a/src/gui/gui-bar.c
+++ b/src/gui/gui-bar.c
@@ -402,7 +402,7 @@ gui_bar_check_conditions_for_window (struct t_gui_bar *bar,
}
else if (conditions[0])
{
- pointers = hashtable_new (16,
+ pointers = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_POINTER,
NULL,
@@ -412,7 +412,7 @@ gui_bar_check_conditions_for_window (struct t_gui_bar *bar,
hashtable_set (pointers, "window", window);
hashtable_set (pointers, "buffer", window->buffer);
}
- extra_vars = hashtable_new (16,
+ extra_vars = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_POINTER,
NULL,
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 0342ecdb7..98a400222 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -546,7 +546,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin,
new_buffer->highlight_tags_array = NULL;
/* hotlist */
- new_buffer->hotlist_max_level_nicks = hashtable_new (8,
+ new_buffer->hotlist_max_level_nicks = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_INTEGER,
NULL,
@@ -558,7 +558,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin,
new_buffer->keys_count = 0;
/* local variables */
- new_buffer->local_variables = hashtable_new (8,
+ new_buffer->local_variables = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c
index 2ae7e2a3d..dee38132c 100644
--- a/src/gui/gui-color.c
+++ b/src/gui/gui-color.c
@@ -706,7 +706,7 @@ gui_color_palette_alloc_structs ()
{
if (!gui_color_hash_palette_color)
{
- gui_color_hash_palette_color = hashtable_new (16,
+ gui_color_hash_palette_color = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_POINTER,
NULL,
@@ -717,7 +717,7 @@ gui_color_palette_alloc_structs ()
}
if (!gui_color_hash_palette_alias)
{
- gui_color_hash_palette_alias = hashtable_new (16,
+ gui_color_hash_palette_alias = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_INTEGER,
NULL,
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index 7a801ab4f..eee061e2f 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -428,7 +428,7 @@ irc_config_change_look_nick_color_force (void *data,
if (!irc_config_hashtable_nick_color_force)
{
- irc_config_hashtable_nick_color_force = weechat_hashtable_new (8,
+ irc_config_hashtable_nick_color_force = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -581,7 +581,7 @@ irc_config_change_color_mirc_remap (void *data, struct t_config_option *option)
if (!irc_config_hashtable_color_mirc_remap)
{
- irc_config_hashtable_color_mirc_remap = weechat_hashtable_new (8,
+ irc_config_hashtable_color_mirc_remap = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -626,7 +626,7 @@ irc_config_change_color_nick_prefixes (void *data,
if (!irc_config_hashtable_nick_prefixes)
{
- irc_config_hashtable_nick_prefixes = weechat_hashtable_new (8,
+ irc_config_hashtable_nick_prefixes = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -1954,17 +1954,17 @@ irc_config_init ()
{
struct t_config_section *ptr_section;
- irc_config_hashtable_color_mirc_remap = weechat_hashtable_new (8,
+ irc_config_hashtable_color_mirc_remap = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
NULL);
- irc_config_hashtable_nick_color_force = weechat_hashtable_new (8,
+ irc_config_hashtable_nick_color_force = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
NULL);
- irc_config_hashtable_nick_prefixes = weechat_hashtable_new (8,
+ irc_config_hashtable_nick_prefixes = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/plugins/irc/irc-message.c b/src/plugins/irc/irc-message.c
index eb47af6a2..7123bf5f6 100644
--- a/src/plugins/irc/irc-message.c
+++ b/src/plugins/irc/irc-message.c
@@ -224,7 +224,7 @@ irc_message_parse_to_hashtable (struct t_irc_server *server,
irc_message_parse (server, message, &tags, &message_without_tags, &nick,
&host, &command, &channel, &arguments);
- hashtable = weechat_hashtable_new (8,
+ hashtable = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -814,7 +814,7 @@ irc_message_split (struct t_irc_server *server, const char *message)
if (weechat_irc_plugin->debug >= 2)
weechat_printf (NULL, "irc_message_split: message='%s'", message);
- hashtable = weechat_hashtable_new (8,
+ hashtable = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 76891218c..0e60c32ed 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -4561,7 +4561,7 @@ irc_protocol_get_message_tags (const char *tags)
if (!tags || !tags[0])
return NULL;
- hashtable = weechat_hashtable_new (8,
+ hashtable = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/plugins/irc/irc-redirect.c b/src/plugins/irc/irc-redirect.c
index 6944f9d9f..f8bc56546 100644
--- a/src/plugins/irc/irc-redirect.c
+++ b/src/plugins/irc/irc-redirect.c
@@ -422,7 +422,7 @@ irc_redirect_new_with_commands (struct t_irc_server *server,
{
if (items[i])
{
- hash_cmd[i] = weechat_hashtable_new (8,
+ hash_cmd[i] = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_INTEGER,
NULL,
@@ -713,7 +713,7 @@ irc_redirect_stop (struct t_irc_redirect *redirect, const char *error)
* error or max count reached, then we run callback and remove
* redirect
*/
- hashtable = weechat_hashtable_new (8,
+ hashtable = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index 3e5f46ed6..cd0c20b9c 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -958,17 +958,17 @@ irc_server_alloc (const char *name)
new_server->last_redirect = NULL;
new_server->notify_list = NULL;
new_server->last_notify = NULL;
- new_server->join_manual = weechat_hashtable_new (4,
+ new_server->join_manual = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_INTEGER,
NULL,
NULL);
- new_server->join_channel_key = weechat_hashtable_new (4,
+ new_server->join_channel_key = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
NULL);
- new_server->join_noswitch = weechat_hashtable_new (4,
+ new_server->join_noswitch = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -2093,7 +2093,7 @@ irc_server_sendf (struct t_irc_server *server, int flags, const char *tags,
ret_number = 1;
if (flags & IRC_SERVER_SEND_RETURN_HASHTABLE)
{
- ret_hashtable = weechat_hashtable_new (8,
+ ret_hashtable = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/plugins/relay/irc/relay-irc.c b/src/plugins/relay/irc/relay-irc.c
index 5534a6e5e..2f7b13ac7 100644
--- a/src/plugins/relay/irc/relay-irc.c
+++ b/src/plugins/relay/irc/relay-irc.c
@@ -155,7 +155,7 @@ relay_irc_message_parse (const char *message)
hash_msg = NULL;
hash_parsed = NULL;
- hash_msg = weechat_hashtable_new (8,
+ hash_msg = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -211,7 +211,7 @@ relay_irc_sendf (struct t_relay_client *client, const char *format, ...)
if (pos)
pos[0] = '\0';
- hashtable_in = weechat_hashtable_new (8,
+ hashtable_in = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -1574,7 +1574,7 @@ relay_irc_recv_one_msg (struct t_relay_client *client, char *data)
}
else if (!relay_irc_command_ignored (irc_command))
{
- hash_redirect = weechat_hashtable_new (8,
+ hash_redirect = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/plugins/relay/relay-config.c b/src/plugins/relay/relay-config.c
index 979cb20c4..d38c22f5e 100644
--- a/src/plugins/relay/relay-config.c
+++ b/src/plugins/relay/relay-config.c
@@ -204,7 +204,7 @@ relay_config_change_irc_backlog_tags (void *data,
if (!relay_config_hashtable_irc_backlog_tags)
{
- relay_config_hashtable_irc_backlog_tags = weechat_hashtable_new (8,
+ relay_config_hashtable_irc_backlog_tags = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/plugins/relay/weechat/relay-weechat.c b/src/plugins/relay/weechat/relay-weechat.c
index 2fc08f6e7..be729f524 100644
--- a/src/plugins/relay/weechat/relay-weechat.c
+++ b/src/plugins/relay/weechat/relay-weechat.c
@@ -204,7 +204,7 @@ relay_weechat_alloc (struct t_relay_client *client)
RELAY_WEECHAT_DATA(client, password_ok) = (password && password[0]) ? 0 : 1;
RELAY_WEECHAT_DATA(client, compression) = 1;
RELAY_WEECHAT_DATA(client, buffers_sync) =
- weechat_hashtable_new (16,
+ weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_INTEGER,
NULL,
@@ -213,7 +213,7 @@ relay_weechat_alloc (struct t_relay_client *client)
RELAY_WEECHAT_DATA(client, hook_signal_nicklist) = NULL;
RELAY_WEECHAT_DATA(client, hook_signal_upgrade) = NULL;
RELAY_WEECHAT_DATA(client, buffers_nicklist) =
- weechat_hashtable_new (16,
+ weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -245,7 +245,7 @@ relay_weechat_alloc_with_infolist (struct t_relay_client *client,
RELAY_WEECHAT_DATA(client, compression) = weechat_infolist_integer (infolist, "compression");
/* sync of buffers */
- RELAY_WEECHAT_DATA(client, buffers_sync) = weechat_hashtable_new (16,
+ RELAY_WEECHAT_DATA(client, buffers_sync) = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_INTEGER,
NULL,
@@ -268,7 +268,7 @@ relay_weechat_alloc_with_infolist (struct t_relay_client *client,
RELAY_WEECHAT_DATA(client, hook_signal_nicklist) = NULL;
RELAY_WEECHAT_DATA(client, hook_signal_upgrade) = NULL;
RELAY_WEECHAT_DATA(client, buffers_nicklist) =
- weechat_hashtable_new (16,
+ weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/plugins/script/script-action.c b/src/plugins/script/script-action.c
index c65656c42..c00f5fa13 100644
--- a/src/plugins/script/script-action.c
+++ b/src/plugins/script/script-action.c
@@ -556,7 +556,7 @@ script_action_install (int quiet)
NULL);
if (filename)
{
- options = weechat_hashtable_new (8,
+ options = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -986,7 +986,7 @@ script_action_show (const char *name, int quiet)
".repository");
if (filename)
{
- options = weechat_hashtable_new (8,
+ options = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c
index 304dfe6e0..0c5b2e6bc 100644
--- a/src/plugins/script/script-repo.c
+++ b/src/plugins/script/script-repo.c
@@ -1123,7 +1123,7 @@ script_repo_file_read (int quiet)
if (!script_repo_max_length_field)
{
- script_repo_max_length_field = weechat_hashtable_new (16,
+ script_repo_max_length_field = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_INTEGER,
NULL,
@@ -1181,7 +1181,7 @@ script_repo_file_read (int quiet)
locale_language = strdup (locale);
}
- descriptions = weechat_hashtable_new (8,
+ descriptions = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -1457,7 +1457,7 @@ script_repo_file_update (int quiet)
if (!filename)
return;
- options = weechat_hashtable_new (8,
+ options = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
diff --git a/src/plugins/script/script.c b/src/plugins/script/script.c
index 1f66118c5..37a92e4d1 100644
--- a/src/plugins/script/script.c
+++ b/src/plugins/script/script.c
@@ -128,7 +128,7 @@ script_get_loaded_plugins_and_scripts ()
/* get loaded scripts */
if (!script_loaded)
{
- script_loaded = weechat_hashtable_new (16,
+ script_loaded = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,