提交 cb944f6b 编写于 作者: J Julian Phillips 提交者: Junio C Hamano

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: NJulian Phillips <julian@quantumfyre.co.uk>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 7c42e390
......@@ -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 )
......
......@@ -12,7 +12,7 @@ struct string_list
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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册