summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-03-07 10:55:18 -0800
committerRussell Belfer <arrbee@arrbee.com>2012-03-07 10:55:18 -0800
commit6af24ce31f43c3621f11720704a078058665bc3f (patch)
tree9d180ee76c51c7fd41b7cd646254e114801770db /src/util.h
parente54d8d8972ddfa886bfcf1a078d253b632debc72 (diff)
parent998f7b3dd76afbf462785a757b24a3554ad8534d (diff)
downloadlibgit2-6af24ce31f43c3621f11720704a078058665bc3f.tar.gz
Merge pull request #590 from arrbee/new-error-handling
Migrating diff to new error handling
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 803c63d73..01755b59e 100644
--- a/src/util.h
+++ b/src/util.h
@@ -115,6 +115,11 @@ extern int git__fnmatch(const char *pattern, const char *name, int flags);
extern void git__tsort(void **dst, size_t size, int (*cmp)(const void *, const void *));
+/**
+ * @param position If non-NULL, this will be set to the position where the
+ * element is or would be inserted if not found.
+ * @return pos (>=0) if found or -1 if not found
+ */
extern int git__bsearch(
void **array,
size_t array_len,