#include "test-tool.h" #include "strbuf.h" #include "string-list.h" /* * Parse an argument into a string list. arg should either be a * ':'-separated list of strings, or "-" to indicate an empty string * list (as opposed to "", which indicates a string list containing a * single empty string). list->strdup_strings must be set. */ static void parse_string_list(struct string_list *list, const char *arg) { … } static void write_list(const struct string_list *list) { … } static void write_list_compact(const struct string_list *list) { … } static int prefix_cb(struct string_list_item *item, void *cb_data) { … } int cmd__string_list(int argc, const char **argv) { … }