Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-02-23 03:15:35 +0400
committerRussell Belfer <arrbee@arrbee.com>2012-02-23 03:15:35 +0400
commit0534641dfec001794ae9a83cfd1cfc7acaef97b7 (patch)
treed17e72af0ae9a9435aef29cc388d50a67a3cc0b0 /src/vector.h
parentda337c806468d2d8a27dfa9ee5e75e476f5ad546 (diff)
Fix iterators based on pull request feedback
This update addresses all of the feedback in pull request #570. The biggest change was to create actual linked list stacks for storing the tree and workdir iterator state. This cleaned up the code a ton. Additionally, all of the static functions had their 'git_' prefix removed, and a lot of other unnecessary changes were removed from the original patch.
Diffstat (limited to 'src/vector.h')
-rw-r--r--src/vector.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vector.h b/src/vector.h
index c11e801cc..44635ae14 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -22,7 +22,6 @@ typedef struct git_vector {
#define GIT_VECTOR_INIT {0}
int git_vector_init(git_vector *v, unsigned int initial_size, git_vector_cmp cmp);
-int git_vector_alloc(git_vector **v, unsigned int initial_size, git_vector_cmp cmp);
void git_vector_free(git_vector *v);
void git_vector_clear(git_vector *v);
@@ -54,7 +53,7 @@ int git_vector_insert(git_vector *v, void *element);
int git_vector_insert_sorted(git_vector *v, void *element,
int (*on_dup)(void **old, void *new));
int git_vector_remove(git_vector *v, unsigned int idx);
-int git_vector_pop(git_vector *v, void **element);
+void git_vector_pop(git_vector *v);
void git_vector_uniq(git_vector *v);
#endif