You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A number of other C libraries I've used include facilities for users optionally specifying their own allocation and hashing methods. This can be quite useful for testing and portability. Perhaps you could consider adding something like this?
The text was updated successfully, but these errors were encountered:
Thanks for the response! I was considering working on a PR with that plus unit tests, as I usually get nervous when I don't see unit tests with something. Libraries that intern stuff are nice to test with malloc/free wrappers to ensure memory management works as expected on all platforms, but for now I can settle for using valgrind.
I'm hoping to use this for a very cross-platform project so if I come across portability problems that are simple to fix I'll probably fork and submit a PR.
There's good coverage of the library in ./tests.c that passes valgrind and clang's analysis tools without errors (although I haven't checked recently). You can run the tests using:
$ mkdir build &&cd build
$ cmake ..
$ make check
I'd be happy to accept any portability fixes but I imagine CMake does a good job already.
This is a nice library. Thanks for making it!
A number of other C libraries I've used include facilities for users optionally specifying their own allocation and hashing methods. This can be quite useful for testing and portability. Perhaps you could consider adding something like this?
The text was updated successfully, but these errors were encountered: