Commit Graph

10 Commits

Author SHA1 Message Date
Nick Wellnhofer
a7b037952f doc: Minor fixes for apibuild.py 2023-11-04 19:32:48 +01:00
Nick Wellnhofer
4f221a7748 hash: Add hash table tests
Make sure to properly test removal from hash tables.
2023-09-29 00:15:40 +02:00
Nick Wellnhofer
a77f9ab84c globals: Don't include SAX2.h from globals.h 2023-09-20 22:06:49 +02:00
Nick Wellnhofer
edc2dd48cb dict: Update hash function
Update hash function from classic Jenkins OAAT (dict.c) and a variant of
DJB2 (hash.c) to "GoodOAAT" taken from the SMHasher repo. This hash
function passes all SMHasher tests.
2023-09-04 16:07:23 +02:00
Nick Wellnhofer
7f3f3f115f dict: Raise MAX_DICT_HASH limit
This fixes quadratic behavior with large dictionaries.

Also rework testdict.c to support tests with larger dictionaries.
2023-05-03 19:40:57 +02:00
Nick Wellnhofer
886bf4e63b Stop calling xmlMemoryDump
This was used to check for memory leaks but could potentially create a
.memdump file. These days, there are better ways to check for memory
leaks.
2023-04-30 15:48:41 +02:00
Nick Wellnhofer
d725addd92 warnings: Work around MSVC bug
MSVC apparently complains when passing a `const char **` to memset.
Unlike `const char *const *`, this isn't a pointer to const memory.
2022-11-22 15:49:27 +01:00
Philip Withnall
579410427f Remove various unused value assignments
As detected by Coverity (CIDs 60467–60472).

https://bugzilla.gnome.org/show_bug.cgi?id=739220
2014-10-27 21:18:57 +08:00
Daniel Veillard
d330f18fbc add the new test in 'make check' and update it to check subdictionaries
* Makefile.am testdict.c: add the new test in 'make check' and
  update it to check subdictionaries processing.
Daniel

svn path=/trunk/; revision=3769
2008-08-08 12:03:22 +00:00
Daniel Veillard
d68f8912c4 added a program to regression test the dictionary code improve the lookup
* testdict.c: added a program to regression test the dictionary code
* dict.c: improve the lookup efficiency by caching the key.
Daniel

svn path=/trunk/; revision=3768
2008-08-08 10:09:19 +00:00