summaryrefslogtreecommitdiff
path: root/string-list.h
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-07-04 16:46:19 -0300
committerJunio C Hamano <gitster@pobox.com>2010-07-05 11:47:57 -0700
commit183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2 (patch)
tree2ab3a6f27ab3e8857cf3b5a825435f7bf6ed5b72 /string-list.h
parent8a57c6e9437eeebf849f0def03389078a510312e (diff)
downloadgit-183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2.tar.gz
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>
Diffstat (limited to 'string-list.h')
-rw-r--r--string-list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/string-list.h b/string-list.h
index a37cae599a..494693898b 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);