string_list: Fix argument order for print_string_list
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>
Julian Phillips committed
Jun 26, 2010 at 00:41 UTC
cb944f6b5009e4788041a5194d73b92a0620c9d9
2 files changed
+2
-2
string-list.c
+1
-1
@@ -139,7 +139,7 @@ void string_list_clear_func(struct string_list *list, string_list_clear_func_t c
139
}
140
141
142
-void print_string_list(const char *text, const struct string_list *p)
142
+void print_string_list(const struct string_list *p, const char *text)
143
{
144
int i;
145
if ( text )
string-list.h
+1
-1
@@ -12,7 +12,7 @@ struct string_list
12
unsigned int strdup_strings:1;
13
};
14
15
-void print_string_list(const char *text, const struct string_list *p);
15
+void print_string_list(const struct string_list *p, const char *text);
16
void string_list_clear(struct string_list *list, int free_util);
17
18
/* Use this function to call a custom clear function on each util pointer */