diff options
author | Philip Kelley <phkelley@hotmail.com> | 2013-01-27 23:17:07 +0400 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2013-01-27 23:17:07 +0400 |
commit | 11d9f6b30438a141def883b0115f7f764c03e990 (patch) | |
tree | abe54e8085c4e3a1c7a822ee256f81e0d58e6b42 /src/util.h | |
parent | aa3bf89df21c44f22fe70b4aac9109646fd06b48 (diff) |
Vector improvements and their fallout
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index 9bcd3203e..e75d777a8 100644 --- a/src/util.h +++ b/src/util.h @@ -13,6 +13,9 @@ #ifndef min # define min(a,b) ((a) < (b) ? (a) : (b)) #endif +#ifndef max +# define max(a,b) ((a) > (b) ? (a) : (b)) +#endif /* * Custom memory allocation wrappers @@ -132,7 +135,7 @@ extern void git__tsort_r( /** * @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 + * @return 0 if found; GIT_ENOTFOUND if not found */ extern int git__bsearch( void **array, |