commit: Fix stripping of patch in verbose mode.
[git/mingw/j6t.git] / string-list.h
blob4d6a7051fe5bccf04a0d0c32a90e5cf9c00dba3c
1 #ifndef PATH_LIST_H
2 #define PATH_LIST_H
4 struct string_list_item {
5 char *string;
6 void *util;
7 };
8 struct string_list
10 struct string_list_item *items;
11 unsigned int nr, alloc;
12 unsigned int strdup_strings:1;
15 void print_string_list(const char *text, const struct string_list *p);
16 void string_list_clear(struct string_list *list, int free_util);
18 /* Use these functions only on sorted lists: */
19 int string_list_has_string(const struct string_list *list, const char *string);
20 struct string_list_item *string_list_insert(const char *string, struct string_list *list);
21 struct string_list_item *string_list_lookup(const char *string, struct string_list *list);
23 /* Use these functions only on unsorted lists: */
24 struct string_list_item *string_list_append(const char *string, struct string_list *list);
25 void sort_string_list(struct string_list *list);
26 int unsorted_string_list_has_string(struct string_list *list, const char *string);
28 #endif /* PATH_LIST_H */