1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

api: add arguments "index_start" and "index_end" in function string_rebuild_split_string

This commit is contained in:
Sébastien Helleu
2022-07-20 13:16:35 +02:00
parent 62e68f965f
commit b7441bd7a3
31 changed files with 241 additions and 64 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ char *
hook_hsignal_get_description (struct t_hook *hook)
{
return string_rebuild_split_string (
(const char **)(HOOK_HSIGNAL(hook, signals)), ";");
(const char **)(HOOK_HSIGNAL(hook, signals)), ";", 0, -1);
}
/*
+1 -1
View File
@@ -167,7 +167,7 @@ hook_line_exec (struct t_gui_line *line)
HASHTABLE_SET_STR_NOT_NULL("str_time", line->data->str_time);
HASHTABLE_SET_INT("tags_count", line->data->tags_count);
str_tags = string_rebuild_split_string (
(const char **)line->data->tags_array, ",");
(const char **)line->data->tags_array, ",", 0, -1);
HASHTABLE_SET_STR_NOT_NULL("tags", str_tags);
if (str_tags)
free (str_tags);
+1 -1
View File
@@ -44,7 +44,7 @@ char *
hook_signal_get_description (struct t_hook *hook)
{
return string_rebuild_split_string (
(const char **)(HOOK_SIGNAL(hook, signals)), ";");
(const char **)(HOOK_SIGNAL(hook, signals)), ";", 0, -1);
}
/*