aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-01-19man: Add initial sdsfree(3) manpageJohannes Löthberg3-2/+24
2015-01-19man: Add initial sdsnew(3) manpageJohannes Löthberg3-1/+36
2015-01-19man: Add initial sds(3) manpageJohannes Löthberg3-2/+42
2015-01-18Makefile: Fix HEADERS typoJohannes Löthberg1-1/+1
2015-01-18sds.c: Add braces around all one-line if and while loopsJohannes Löthberg1-33/+33
2015-01-18sds.c: add braces around naked while loopsJohannes Löthberg1-2/+4
2015-01-18sds.{c,h}: Sort includesJohannes Löthberg2-3/+3
2015-01-18sds.h: len/avail: remove unnecessary temp varJohannes Löthberg1-4/+2
Use the returned value of sdsheader directly in the return call instead of using a temporary variable since we’re not doing pointer arithmetic directly in the sdslen and sdsavail functions anymore.
2015-01-18sdsfromlonglong: Cast abs ternary statement to ullJohannes Löthberg1-1/+1
Fixes the warning about the ternary statement changing the signedness of value.
2015-01-17sds.c: All if statements should be bracedJohannes Löthberg1-5/+8
2015-01-17Reindent with tabs.Johannes Löthberg2-413/+411
All source code should be indented with tabs and aligned with spaces. When talking about line length a tab equals 4 spaces.
2015-01-17sds.c Replace all in-place calculations with sdsheaderJohannes Löthberg2-16/+16
2015-01-17sds.h: Add inline function for getting the sdshdrJohannes Löthberg1-0/+4
2015-01-17sds.h: Clean up sdshdr struct pointer arithmeticJohannes Löthberg1-2/+2
Remove the unnecessary casting of the pointer arithmetic result in sdslen and sdsavail to a void pointer since it will already be an sdshdr struct.
2015-01-17Revert "SDS Header pointer math rewritten in a more elegant form."Johannes Löthberg2-19/+19
This reverts commit c636fc6cd25e455a75dca24ac08ba736f62db6c8. This commit was just utterly senseless, all it does is make the code less clear for literally nothing.
2014-12-06test.c: Remove blanklines before returnJohannes Löthberg1-21/+0
2014-12-06twbctf: Save the print_width to a variableJohannes Löthberg1-3/+4
2014-12-06Makefile: Add test.c as sds-test prerequisiteJohannes Löthberg1-1/+1
2014-12-06Makefile: Append to CFLAGS, don’t overwriteJohannes Löthberg1-1/+1
2014-12-05sds.h: Don’t use __ in front of include guardJohannes Löthberg1-2/+2
It’s reserved for the implementation and shouldn’t be used.
2014-12-05Makefile: Add newline after HEADERSJohannes Löthberg1-0/+1
2014-12-05Replace testsuite with one based on twbctfJohannes Löthberg7-188/+310
2014-12-05Makefile: Make It Nicer™Johannes Löthberg1-3/+6
2014-12-05Move source files to src dir, use VPATH in MakefileJohannes Löthberg4-1/+3
2014-12-03README: Fix grammatical errors; fix examplesSam Stuewe1-12/+12
[Commit message amended by Johannes Löthberg] closes #1
2014-12-03README: Fix typos, reformat sentences, use other section headingsJohannes Löthberg1-90/+122
2014-12-03Correct 'hold' typo in readmeHarry Jeffery1-1/+1
A 'hold' is missing its 'h' and a variable was misnamed. This patch fixes these issues. [antirez/sds#12 fixed the variable typos]
2014-12-03Fixed minor spelling typos in README.Eric Siegel1-1/+1
2014-12-03Fixed variable naming in README for sdscatrepr.Eric Siegel1-3/+3
2014-12-03Fixed some typos and grammar.Jan-Erik Rediger1-10/+10
Some typos where found by aspell: `aspell -l en_US check README.md`
2014-12-03README: Correct typo, BDS -> BSDZyX-I1-1/+1
2014-09-25Make English more idiomatic in README.John Zwinck1-31/+30
2014-02-06Fixed num to string example.antirez1-1/+1
2014-02-06Fix broken markup hopefully.antirez1-6/+6
2014-02-06README: Add C highlight in example it was missing.antirez1-0/+2
2014-02-06Merge pull request #4 from dchest/patch-1Salvatore Sanfilippo1-1/+1
Fix list item indentation
2014-02-06Merge pull request #2 from JuanitoFatas/patch/polish-readmeSalvatore Sanfilippo1-194/+292
quick pass to polish readme.
2014-02-06Fix list item indentationDmitry Chestnykh1-1/+1
2014-02-06SDS Header pointer math rewritten in a more elegant form.antirez2-19/+19
As suggested by unwind in the Hacker News site the calculation of "sh" could be improved. In his own words: "Since the entire idea is that the pointer on the left-hand side is to the type whose size should be subtracted, I think it's better not to repeat the type but to "lock it" to the pointer instead. This also (of course) means we can drop the parenthesis with sizeof, since those are only needed when its argument is a type name."
2014-02-06quick pass to polish readme.Juanito Fatas1-194/+292
2014-02-06Two examples fixed.antirez1-3/+3
2014-02-06README: fixed sdscatprintf() example.antirez1-1/+1
2014-02-06README: sentence improved in concatenating strings sec.antirez1-1/+1
2014-02-06README: advantages/disadvantages layout improved.antirez1-5/+6
2014-02-06README typo: filed -> field.antirez1-1/+1
2014-02-06Merge branch 'master' of github.com:antirez/sdsantirez1-19/+26
2014-02-06README: fixed missing quote.antirez1-1/+1
2014-02-06Merge pull request #1 from frodsan/patch-1Salvatore Sanfilippo1-19/+26
Fix markdown.
2014-02-06Fix markdown.Francesco Rodríguez1-19/+26
2014-02-06Markdown list removed from README where it caused issues.antirez1-10/+3