summaryrefslogtreecommitdiff
path: root/string-list.h
diff options
context:
space:
mode:
authorJulian Phillips <julian@quantumfyre.co.uk>2010-06-26 00:41:36 +0100
committerJunio C Hamano <gitster@pobox.com>2010-06-27 10:06:51 -0700
commitaadceea641806b363ca555ffdc04109ea716c497 (patch)
treebae93989bf8c6169b23c1c43b8fb0810665ebfaf /string-list.h
parent78a395d371ec9fd14297178ec98b8b1042a64fb6 (diff)
downloadgit-aadceea641806b363ca555ffdc04109ea716c497.tar.gz
string_list: Fix argument order for string_list_insert_at_index
Update the definition and callers of string_list_insert_at_index to use the string_list as the first argument. This helps make the string_list 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>
Diffstat (limited to 'string-list.h')
-rw-r--r--string-list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/string-list.h b/string-list.h
index 3d5a8de4b5..a4e1919ada 100644
--- a/string-list.h
+++ b/string-list.h
@@ -30,8 +30,8 @@ int string_list_has_string(const struct string_list *list, const char *string);
int string_list_find_insert_index(const struct string_list *list, const char *string,
int negative_existing_index);
struct string_list_item *string_list_insert(struct string_list *list, const char *string);
-struct string_list_item *string_list_insert_at_index(int insert_at,
- const char *string, struct string_list *list);
+struct string_list_item *string_list_insert_at_index(struct string_list *list,
+ int insert_at, const char *string);
struct string_list_item *string_list_lookup(const char *string, struct string_list *list);
/* Use these functions only on unsorted lists: */