string_list: Add STRING_LIST_INIT macro and make use of it.
Acked-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
8a57c6e943
commit
183113a5ca
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user