aboutsummaryrefslogtreecommitdiff
path: root/jim-zlib.c
AgeCommit message (Collapse)AuthorFilesLines
2021-01-10package: add ABI version checkingSteve Bennett1-4/+1
jim.h now includes JIM_ABI_VERSION that should be incremented whenever the ABI changes. Then all loadable modules should call Jim_CheckAbiVersion() to make sure they are loaded against the correct version. Add Jim_PackageProvideCheck() that does both Jim_CheckAbiVersion() and Jim_PackageProvide() to simplify the implementation of loadable extensions. Also rename the "big" sqlite3 extension to just sqlite to avoid a naming conflict with the smaller jim-sqlite3 extension. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-04-20zlib: compression may need some additional free spaceSteve Bennett1-0/+6
Signed-off-by: Stuart Cassoff <stwo@bell.net>
2017-04-19zlib: deflate: free correct pointer on errorSteve Bennett1-2/+2
Reported-by: Stuart Cassoff <stwo@bell.net> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-10-09jim.c: Fix Object leak in zlib supportSteve Bennett1-2/+1
Change Jim_SetResultFormatted() to increment/decrement the ref count of any %#s parameters. This allows zero refcount objects to be passed in and be freed automatically. Reported-by: Evan Hunter <evan@ozhiker.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-29zlib: Don't use PASTE for INTMAX error messagesSteve Bennett1-7/+12
Can lead to different results on different compilers. Reported-by: Danyil Bohdan <danyil.bohdan@gmail.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-28zlib: Fix arg error checkingSteve Bennett1-12/+6
It is wrong to call Jim_WrongNumArgs() with argc == 0. Instead -1 should be returned from the subcmd function to display the standard error message. Add a --maintainer check for this condition in Jim_WrongNumArgs() and fix the zlib unit tests. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-03-28zlib: add zlib bindingsDima Krasner1-0/+315
Including documentation and tests