This is in preparation for STRLIST to use them as well.
suffix = settings_section_escape(suffix + 1);
o_stream_nsend(ctx->output,
set->value_stop_list ?
- SET_BOOLLIST_REPLACE :
- SET_BOOLLIST_APPEND, 1);
+ SET_LIST_REPLACE :
+ SET_LIST_APPEND, 1);
o_stream_nsend(ctx->output, suffix,
strlen(suffix) + 1);
} else {
i_assert(suffix[0] == '\0');
i_assert(set->type == CONFIG_KEY_LIST);
o_stream_nsend(ctx->output,
- SET_BOOLLIST_CLEAR, 1 + 1);
+ SET_LIST_CLEAR, 1 + 1);
}
}
o_stream_nsend(ctx->output, set->value, strlen(set->value)+1);
#define SET_TIME_INFINITE UINT_MAX
#define SET_TIME_MSECS_INFINITE UINT_MAX
-#define SET_BOOLLIST_APPEND "+"
-#define SET_BOOLLIST_REPLACE "$"
-#define SET_BOOLLIST_CLEAR "."
+#define SET_LIST_APPEND "+"
+#define SET_LIST_REPLACE "$"
+#define SET_LIST_CLEAR "."
#define SET_FILE_INLINE_PREFIX "inline:"
ctx->info->defines[key_idx].type == SET_STRLIST) {
const char *type =
(const char *)mmap->mmap_base + offset;
- if (type[0] == SET_BOOLLIST_REPLACE[0])
+ if (type[0] == SET_LIST_REPLACE[0])
list_stop = TRUE;
- else if (type[0] == SET_BOOLLIST_CLEAR[0]) {
+ else if (type[0] == SET_LIST_CLEAR[0]) {
list_stop = TRUE;
list_clear = TRUE;
- } else if (type[0] != SET_BOOLLIST_APPEND[0]) {
+ } else if (type[0] != SET_LIST_APPEND[0]) {
*error_r = t_strdup_printf(
"List type is invalid (offset=%zu)",
offset);