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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user