Nicolas Léveillé
206f5044a8
Remove warning about tail "potentially uninitialized"
...
MSVC was complaining that the `tail` variable was potentially
uninitialized in the while branch. Since the while loop is actually
coupled to the if (head != NULL) that initializes the tail variable,
we move them together, which makes the warning disappear.
2016-01-31 16:55:17 +01:00
Sven M. Hallberg
d2ade1f5b4
call h_arena_free when resizing in h_carray_append
2015-10-29 13:11:32 +01:00
Meredith L. Patterson
eb6c74cf89
h_put_value and h_get_value done.
2014-05-12 09:52:35 +02:00
Meredith L. Patterson
bab376cab7
fix non-resizable hashtable
2014-04-20 21:00:50 +02:00
Dan Hirsch
b0f567c090
Added new build system
2013-07-10 21:32:05 +02:00
Dan Hirsch
ce74cf7939
Refactored regex backend to use a sparse thread list
2013-06-24 21:25:22 +02:00
Sven M. Hallberg
b1e8e29774
add engine forking
2013-06-20 11:05:57 +02:00
Sven M. Hallberg
bfc2433320
don't call compare function on NULL hashtable keys
2013-06-14 17:07:56 +02:00
Sven M. Hallberg
3ad4c51070
fix hte_same_length()
2013-06-07 13:46:16 +02:00
Sven M. Hallberg
e7a388d1c7
move djbhash into general availability as h_djbhash
2013-06-06 13:02:29 +02:00
Sven M. Hallberg
636f741d88
add h_hashset_equal (set comparison)
2013-06-05 15:12:48 +02:00
Meredith L. Patterson
b6d9c0c0c4
No more cycles in table generation! (Merge branch 'LL' of https://github.com/pesco/hammer )
2013-05-24 14:13:54 -07:00
Sven M. Hallberg
3047fd223b
let h_hashtable_merge's combine function decide what to do on NULL dst values
2013-05-24 22:29:33 +02:00
Dan Hirsch
d71215d494
All tests pass; lots of stuff is no longer const
2013-05-24 15:07:47 +02:00
Meredith L. Patterson
1c7e9947a4
merging in aegis' JNI bindings
2013-05-23 00:58:27 -07:00
Sven M. Hallberg
e4d0b636dd
add h_hashtable_merge function
2013-05-22 21:57:46 +02:00
Sven M. Hallberg
f5d5c36756
generalize grammar analysis to k>1
2013-05-22 20:38:36 +02:00
Sven M. Hallberg
1631e9c08f
constify read-only hashtable methods
2013-05-08 17:01:23 +02:00
Sven M. Hallberg
2943cfdfdd
quick fix to improve "hashing" of pointers (discard 4 least significant bits)
2013-05-08 16:07:51 +02:00
Sven M. Hallberg
66b0ed7bf1
move h_eq_ptr and h_hash_ptr into datastructures.c / internal.h
2013-05-08 15:54:29 +02:00
Sven M. Hallberg
b28d82bdeb
h_hashtable_put generated double entries if the match was last in list
2013-05-05 22:12:05 +02:00
Sven M. Hallberg
2f81c2b400
fix hashtable iteration in h_hashtable_update
2013-05-05 19:32:23 +02:00
Sven M. Hallberg
0b9c9a6a10
formatting
2013-04-30 17:49:07 +02:00
Sven M. Hallberg
209bd43f10
add h_hashtable_update and h_hashset_put_all
2013-04-30 17:45:33 +02:00
Sven M. Hallberg
109d60fca3
make hashtable keys const
2013-04-30 17:44:54 +02:00
Sven M. Hallberg
dffe47bf57
initialize eval_set to a proper copy of involved_set
2013-01-10 00:40:19 +01:00
Meredith L. Patterson
8163b3981d
Changed other instances of malloc.h to stdlib.h for OSX compat
2012-11-14 14:05:25 -05:00
Dan Hirsch
6101b8c43a
Hash table now works.
2012-10-08 22:06:33 +02:00
Meredith L. Patterson
b44d00ed33
Replaced GHashTable with HHashTable ... which has some problem causing it to segfault.
2012-10-08 21:12:56 +02:00
Meredith L. Patterson
bc5e2fa754
pulled in tq's hashtable
2012-10-08 19:21:56 +02:00
Dan Hirsch
12035d66a1
Added hashtable implementation
2012-10-08 19:20:36 +02:00
Meredith L. Patterson
ef6af551d1
Replaced GQueue and GSlist with HSlist.
2012-10-08 18:16:18 +02:00
Dan Hirsch
69ba191783
Added singly-linked list
2012-10-08 17:11:47 +02:00
Dan Hirsch
0284c99f12
Renamed all the public functions
2012-05-26 14:06:52 +02:00
Dan Hirsch
199cde7058
Renamed more types
2012-05-26 13:01:23 +02:00
Meredith L. Patterson
4226d67c26
DNS, refactored and compiling. Needs struct-building action written still.
2012-05-24 18:44:48 +02:00
Dan Hirsch
764d0d7071
Cleaned up some memory leaks, got rid of gsequence, improved test macro to free memory that it allocated
2012-05-17 15:52:29 +02:00