summaryrefslogtreecommitdiff
path: root/src/common/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/command.c')
-rw-r--r--src/common/command.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/common/command.c b/src/common/command.c
index b24d14e3a..7b7cb68ba 100644
--- a/src/common/command.c
+++ b/src/common/command.c
@@ -146,6 +146,19 @@ command_index_build ()
}
/*
+ * command_index_free: remove all commands in index
+ */
+
+void
+command_index_free ()
+{
+ while (index_commands)
+ {
+ weelist_remove (&index_commands, &last_index_command, index_commands);
+ }
+}
+
+/*
* alias_search: search an alias
*/
@@ -307,6 +320,17 @@ alias_free (t_weechat_alias *alias)
}
/*
+ * alias_free_all: free all alias
+ */
+
+void
+alias_free_all ()
+{
+ while (weechat_alias)
+ alias_free (weechat_alias);
+}
+
+/*
* explode_string: explode a string according to separators
*/