summaryrefslogtreecommitdiff
path: root/sds.h
AgeCommit message (Collapse)Author
2020-06-07sdsrange overflow fix (#830)Michael Grunder
Fix overflow bug in `sdsrange`
2019-08-09MSVC: Fix some compiler warnings in sds.hMarcus Geelnard
2019-08-09MinGW fix: Use _MSC_VER instead of _WIN32 where appropriateMarcus Geelnard
Use _MSC_VER (instead of _WIN32) for things that are specific for Visual Studio. Also remove #include <winsock2.h> from hiredis.h, as it leaks too many symbols and defines into the global namespace, which is undesirable for a public interface header. Anyone who uses the the affected parts of the hiredis API needs to include the appropriate headers anyway in order to declare struct timeval variables.
2019-04-13Fix Compile Error On Windows (Visual Studio)jinjiazhang
2016-05-14Update sds.hAli Volkan ATLI
Fixing sds.h for building hiredis in cpp project
2016-04-20feat: Include latests changes from sds upstreamJan-Erik Rediger
2016-04-20apply sds from redisclark.kang
2015-03-13Added support for compiling the parser code with Microsoft Visual C compiler.tzickel
For hiredis-py and others support on windows.
2015-01-05Fix sds building with C++Matt Stancliff
These should really just be macros to shut up our type system.
2015-01-05Improve redisAppendCommandArgv performancemichael-grunder
OK, perhaps the second time is a charm. I forgot that I had hiredis forked from a long time ago, so the initial pull request was hosed. :) * Pulled in sdscatfmt() from Redis, and modified it to accept a size_t (%T) style format specifier. * Pulled in sdsll2str() and sdsull2str() from Redis (needed by sdscatfmt). * Added a new method, redisFormatSdsCommandArgv() which takes and sds* as the target, rather than char* (and uses sdscatfmt instead of sprintf for the construction). I get roughly the following improvement: Old: 1.044806 New: 0.481620 The benchmark code itself can be found here: https://gist.github.com/michael-grunder/c92ef31bb632b3d0ad81 Closes #260
2014-04-09Upgrade sds to latest versionantirez
SDS is now broken out of Redis into its own project, so include the latest version from the SDS repo. This is a backport of the Redis commit doing the same to the bundled hiredis: https://github.com/antirez/redis/commit/320fa02b9b48ee1c63d88db6344fc0d328e24853
2011-04-19Inline sdslen and sdsavail (thanks to @bitbckt)Pieter Noordhuis
2011-01-27Avoid warnings with -Wstrict-prototypesPieter Noordhuis
2011-01-19Update string libraryPieter Noordhuis
2010-09-20Update sds codePieter Noordhuis
2010-05-25Constify the API and enable -Wwrite-stringsPierre Riteau
The API is more similar to printf now.
2010-05-18hiredis was extracted from redis-tools, reverted to standard malloc/free, ↵antirez
ported to the new protocol, and started as a stand alone project in order to support the need of a C client in the Redis community