const char *value,
ARRAY_TYPE(const_string) **namesp)
{
- const char *const *list = t_strsplit(value, ",\t ");
+ const char *const *list =
+ t_strsplit(value, SETTINGS_FILTER_ARRAY_SEPARATORS);
unsigned int i, count = str_array_length(list);
if (line != NULL && line->type != CONFIG_LINE_TYPE_SECTION_BEGIN) {
by giving e.g. "namespace+=newname" without it removing the
existing ones. */
ARRAY_TYPE(const_string) *arr = ptr;
- const char *const *list = t_strsplit(value, ",\t ");
+ const char *const *list =
+ t_strsplit(value, SETTINGS_FILTER_ARRAY_SEPARATORS);
unsigned int i, count = str_array_length(list);
if (!array_is_created(arr))
p_array_init(arr, ctx->set_pool, count);
#define SETTINGS_SEPARATOR '/'
#define SETTINGS_SEPARATOR_S "/"
+#define SETTINGS_FILTER_ARRAY_SEPARATORS ",\t "
+
/* These values are shown as "unlimited" */
#define SET_VALUE_UNLIMITED "unlimited"
#define SET_UINT_UNLIMITED UINT_MAX
next settings_get_filter() could be trying to look up this filter
and it won't know enough to build the event filter.
*/
- const char *const *items = t_strsplit(array_set->value, ",\t ");
+ const char *const *items =
+ t_strsplit(array_set->value, SETTINGS_FILTER_ARRAY_SEPARATORS);
for (unsigned int i = 0; items[i] != NULL; i++) {
struct settings_override *set =
array_append_space(array_set->overrides_array);