X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=string-list.h;h=494693898b89fe2f8145b483ea7e366e9b1192c1;hb=60109d0ef5974b5066b6998fafe1da7187174c88;hp=a37cae599ab61d3d09b08a9cc67e99841cfa6ed6;hpb=226d06c16bcafda3417163437be9845130fd4998;p=git.git diff --git a/string-list.h b/string-list.h index a37cae599..494693898 100644 --- a/string-list.h +++ b/string-list.h @@ -12,6 +12,9 @@ struct string_list unsigned int strdup_strings:1; }; +#define STRING_LIST_INIT_NODUP { NULL, 0, 0, 0 } +#define STRING_LIST_INIT_DUP { NULL, 0, 0, 1 } + void print_string_list(const struct string_list *p, const char *text); void string_list_clear(struct string_list *list, int free_util);