summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-03-16 01:06:15 +0200
committerVicent Marti <tanoku@gmail.com>2011-03-16 01:06:15 +0200
commit955f9ae9bd25ceb59775463e04c0276209387b67 (patch)
tree826527379834247317b6315c3f86620f74d29d6d /include/git2/common.h
parent36b313296638f8ae349e400ba9a7f5bbfb92b96f (diff)
downloadlibgit2-955f9ae9bd25ceb59775463e04c0276209387b67.tar.gz
Export `git_strarray_free` instead of inlining
That way non-C bindings can use it.
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index 11a08f897..f9045210c 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -165,14 +165,7 @@ typedef struct {
size_t count;
} git_strarray;
-GIT_INLINE(void) git_strarray_free(git_strarray *array)
-{
- size_t i;
- for (i = 0; i < array->count; ++i)
- free(array->strings[i]);
-
- free(array->strings);
-}
+GIT_EXTERN(void) git_strarray_free(git_strarray *array);
/** @} */
GIT_END_DECL