Patrick Steinhardt
64e46dc3b5
khash: avoid using kh_end
directly
2017-02-17 11:41:06 +01:00
Patrick Steinhardt
036daa59e9
khash: use git_map_exists
where applicable
2017-02-17 11:41:06 +01:00
Patrick Steinhardt
9694d9ba79
khash: avoid using kh_foreach
/kh_foreach_value
directly
2017-02-17 11:41:06 +01:00
Jacques Germishuys
6a8127d71d
mempack: set the odb backend version
2016-12-25 22:13:48 +02:00
Patrick Steinhardt
8468a44067
odb_mempack: mark zero-length array as GIT_FLEX_ARRAY
2016-12-12 09:16:33 +01:00
Edward Thomson
220d6f8a10
mempack: expose clear function
2015-09-11 20:06:14 -04:00
Bryan Woods
707f65372b
Removing memory leak in mempack's free
...
It calls git_mempack_reset which reallocates the object array. git_oidmap_free is now called on it explicitly.
2015-09-11 16:35:14 -07:00
Bryan Woods
8e177b2bb8
Fixing dangling pointers in git_mempack_reset
...
git_mempack_reset was leaving free'd pointers in the oidmap.
2015-09-10 14:44:52 -07:00
Stefan Widgren
c8e02b8776
Remove extra semicolon outside of a function
...
Without this change, compiling with gcc and pedantic generates warning:
ISO C does not allow extra ‘;’ outside of a function.
2015-02-15 21:07:05 +01:00
Edward Thomson
f1453c59b2
Make our overflow check look more like gcc/clang's
...
Make our overflow checking look more like gcc and clang's, so that
we can substitute it out with the compiler instrinsics on platforms
that support it. This means dropping the ability to pass `NULL` as
an out parameter.
As a result, the macros also get updated to reflect this as well.
2015-02-13 09:27:33 -05:00
Edward Thomson
392702ee2c
allocations: test for overflow of requested size
...
Introduce some helper macros to test integer overflow from arithmetic
and set error message appropriately.
2015-02-12 22:54:46 -05:00
Vicent Marti
6105d59707
In-memory packing backend
2014-03-26 18:17:08 +01:00