summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7c42e39)
raw | patch | inline | side by side (parent: 7c42e39)
author | Julian Phillips <julian@quantumfyre.co.uk> | |
Fri, 25 Jun 2010 23:41:33 +0000 (00:41 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 27 Jun 2010 17:06:40 +0000 (10:06 -0700) |
Update the definition and callers of print_string_list to use the
string_list as the first argument. This helps make the API easier to
use by being more consistent.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
string_list as the first argument. This helps make the API easier to
use by being more consistent.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
string-list.c | patch | blob | history | |
string-list.h | patch | blob | history |
diff --git a/string-list.c b/string-list.c
index c9ad7fcd49669b0dff481d9ab857bf70d8a51bca..b7e57a407c351e6e39cd86884f64cee7d582b4f1 100644 (file)
--- a/string-list.c
+++ b/string-list.c
@@ -139,7 +139,7 @@ void string_list_clear_func(struct string_list *list, string_list_clear_func_t c
}
-void print_string_list(const char *text, const struct string_list *p)
+void print_string_list(const struct string_list *p, const char *text)
{
int i;
if ( text )
diff --git a/string-list.h b/string-list.h
index 63b69c8d75ee33120a65a23598ddf93e84831bdd..de29dcd96eae97a5d032b669b67e6715580fea12 100644 (file)
--- a/string-list.h
+++ b/string-list.h
unsigned int strdup_strings:1;
};
-void print_string_list(const char *text, const struct string_list *p);
+void print_string_list(const struct string_list *p, const char *text);
void string_list_clear(struct string_list *list, int free_util);
/* Use this function to call a custom clear function on each util pointer */