diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-01-24 10:47:53 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-01-24 10:47:53 +0100 |
commit | eb56a98fc848b5772419bc24e5b1631c2ffa22fb (patch) | |
tree | da13750e99e518d51c4ae89c4c7b80543cee3a2d /src/gui | |
parent | 309e8eadabaca9fde1d5b17b84f4e72c90265abb (diff) | |
download | weechat-eb56a98fc848b5772419bc24e5b1631c2ffa22fb.zip |
Remove evil tabs in sources
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-filter.c | 4 | ||||
-rw-r--r-- | src/gui/gui-history.c | 114 | ||||
-rw-r--r-- | src/gui/wxwidgets/Makefile.am | 2 |
3 files changed, 60 insertions, 60 deletions
diff --git a/src/gui/gui-filter.c b/src/gui/gui-filter.c index 902c69958..f407945f3 100644 --- a/src/gui/gui-filter.c +++ b/src/gui/gui-filter.c @@ -449,12 +449,12 @@ gui_filter_free (struct t_gui_filter *filter) if (filter->regex_prefix) { regfree (filter->regex_prefix); - free (filter->regex_prefix); + free (filter->regex_prefix); } if (filter->regex_message) { regfree (filter->regex_message); - free (filter->regex_message); + free (filter->regex_message); } /* remove filter from filters list */ diff --git a/src/gui/gui-history.c b/src/gui/gui-history.c index d7b793ac8..7ef286e30 100644 --- a/src/gui/gui-history.c +++ b/src/gui/gui-history.c @@ -55,38 +55,38 @@ gui_history_buffer_add (struct t_gui_buffer *buffer, const char *string) if (!buffer->history || (buffer->history && (strcmp (buffer->history->text, string) != 0))) - { - new_history = malloc (sizeof (*new_history)); - if (new_history) - { - new_history->text = strdup (string); - /*if (config_log_hide_nickserv_pwd) + { + new_history = malloc (sizeof (*new_history)); + if (new_history) + { + new_history->text = strdup (string); + /*if (config_log_hide_nickserv_pwd) irc_display_hide_password (new_history->text, 1);*/ - - if (buffer->history) - buffer->history->prev_history = new_history; - else - buffer->last_history = new_history; - new_history->next_history = buffer->history; - new_history->prev_history = NULL; - buffer->history = new_history; - buffer->num_history++; - - /* remove one command if necessary */ - if ((CONFIG_INTEGER(config_history_max_commands) > 0) - && (buffer->num_history > CONFIG_INTEGER(config_history_max_commands))) - { - ptr_history = buffer->last_history->prev_history; + + if (buffer->history) + buffer->history->prev_history = new_history; + else + buffer->last_history = new_history; + new_history->next_history = buffer->history; + new_history->prev_history = NULL; + buffer->history = new_history; + buffer->num_history++; + + /* remove one command if necessary */ + if ((CONFIG_INTEGER(config_history_max_commands) > 0) + && (buffer->num_history > CONFIG_INTEGER(config_history_max_commands))) + { + ptr_history = buffer->last_history->prev_history; if (buffer->ptr_history == buffer->last_history) buffer->ptr_history = ptr_history; - ((buffer->last_history)->prev_history)->next_history = NULL; - if (buffer->last_history->text) - free (buffer->last_history->text); - free (buffer->last_history); - buffer->last_history = ptr_history; - buffer->num_history++; - } - } + ((buffer->last_history)->prev_history)->next_history = NULL; + if (buffer->last_history->text) + free (buffer->last_history->text); + free (buffer->last_history); + buffer->last_history = ptr_history; + buffer->num_history++; + } + } } } @@ -106,37 +106,37 @@ gui_history_global_add (const char *string) || (history_global && (strcmp (history_global->text, string) != 0))) { - new_history = malloc (sizeof (*new_history)); - if (new_history) - { - new_history->text = strdup (string); - /*if (config_log_hide_nickserv_pwd) + new_history = malloc (sizeof (*new_history)); + if (new_history) + { + new_history->text = strdup (string); + /*if (config_log_hide_nickserv_pwd) irc_display_hide_password (new_history->text, 1);*/ - - if (history_global) - history_global->prev_history = new_history; - else - last_history_global = new_history; - new_history->next_history = history_global; - new_history->prev_history = NULL; - history_global = new_history; - num_history_global++; - - /* remove one command if necessary */ - if ((CONFIG_INTEGER(config_history_max_commands) > 0) - && (num_history_global > CONFIG_INTEGER(config_history_max_commands))) - { - ptr_history = last_history_global->prev_history; + + if (history_global) + history_global->prev_history = new_history; + else + last_history_global = new_history; + new_history->next_history = history_global; + new_history->prev_history = NULL; + history_global = new_history; + num_history_global++; + + /* remove one command if necessary */ + if ((CONFIG_INTEGER(config_history_max_commands) > 0) + && (num_history_global > CONFIG_INTEGER(config_history_max_commands))) + { + ptr_history = last_history_global->prev_history; if (history_global_ptr == last_history_global) history_global_ptr = ptr_history; - (last_history_global->prev_history)->next_history = NULL; - if (last_history_global->text) - free (last_history_global->text); - free (last_history_global); - last_history_global = ptr_history; - num_history_global--; - } - } + (last_history_global->prev_history)->next_history = NULL; + if (last_history_global->text) + free (last_history_global->text); + free (last_history_global); + last_history_global = ptr_history; + num_history_global--; + } + } } } diff --git a/src/gui/wxwidgets/Makefile.am b/src/gui/wxwidgets/Makefile.am index 6f649b5ca..b61af03d1 100644 --- a/src/gui/wxwidgets/Makefile.am +++ b/src/gui/wxwidgets/Makefile.am @@ -24,4 +24,4 @@ weechat_wxwidgets_LDADD = ../lib_weechat_gui_common.a \ ../../plugins/lib_weechat_plugins.a $(PLUGINS_LIBS) weechat_wxwidgets_SOURCES = gui-display.c \ - gui-input.c + gui-input.c |