Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-01-20 | Rename sds typedef to yastr | Johannes Löthberg | 2 | -74/+74 | |
2015-01-20 | Rename sdshdr → yastrhdr | Johannes Löthberg | 2 | -20/+20 | |
2015-01-20 | Update functions to use the yasl prefix instead of sds | Johannes Löthberg | 2 | -164/+164 | |
2015-01-20 | Rename sds.{h,c} to yasl.{h,c} | Johannes Löthberg | 3 | -3/+3 | |
2015-01-20 | Missing braces in sdssplitlen cleanup | Johannes Löthberg | 1 | -1/+3 | |
2015-01-20 | Makefile: Add -Wno-vla and -Wno-cast-align | Johannes Löthberg | 1 | -1/+1 | |
Silences warnings in twbctf | |||||
2015-01-20 | test: Add sdstoupper/sdstolower tests | Johannes Löthberg | 1 | -0/+18 | |
Taken from https://github.com/ZheYuan/sds/commit/1970dec9ab13cecb8 by @ZheYuan | |||||
2015-01-19 | sdsIncrLen: Remove note about negative increment | Johannes Löthberg | 1 | -3/+0 | |
This usage was broken by the earlier change to a size_t for the incr argument | |||||
2015-01-19 | sdsIncrLen: Remove assert for non-negative free | Johannes Löthberg | 1 | -1/+0 | |
The length and free struct members are size_t so cannot be negative. The assert also seem like it already was superfluous due to previous assert. | |||||
2015-01-19 | Makefile: Add CFLAGS for PIE and erranous warning | Johannes Löthberg | 1 | -1/+2 | |
-Wdisabled-macro-expansion warns about macros that look like if they were self-recursive but aren't according to the C standard. When compiling with optimizations enabled clang throws this warning about tolower and toupper. | |||||
2015-01-19 | twbctf: Update to newest version | Johannes Löthberg | 2 | -13/+35 | |
Note: The twbctf version used in sds is a slightly modified version and not pure upstream, to let us have the tests in test.c | |||||
2015-01-19 | Move tests to test/ | Johannes Löthberg | 4 | -5/+5 | |
2015-01-19 | sds.c: Remove erranous whitespace at end of line | Johannes Löthberg | 1 | -1/+1 | |
2015-01-19 | sds.h: Rewrite low-lewel API prototype header | Johannes Löthberg | 1 | -1/+1 | |
2015-01-19 | Makefile: Add echo before running test suite | Johannes Löthberg | 1 | -1/+2 | |
2015-01-19 | README: update to new sdsnew/sdsauto functions | Johannes Löthberg | 1 | -21/+21 | |
2015-01-19 | test: Update to use sdsnew and sdsauto | Johannes Löthberg | 1 | -24/+24 | |
2015-01-19 | sds.c: Update comments referencing sdsnew{,len} | Johannes Löthberg | 1 | -4/+4 | |
2015-01-19 | Rename sdsnewlen to sdsnew, add inline sdsauto | Johannes Löthberg | 2 | -29/+33 | |
Warning: this commit introduces a breaking change to the public API. The job of the old sdsnew function is replaced with the sdsauto inline function. | |||||
2015-01-19 | Merge branch 'ordering' | Johannes Löthberg | 2 | -453/+490 | |
2015-01-19 | sds.c: Reorder all functions into groups | Johannes Löthberg | 1 | -416/+434 | |
2015-01-19 | sds.h: Reorder function prototypes in groups | Johannes Löthberg | 1 | -37/+56 | |
2015-01-19 | Merge branch 'casts' | Johannes Löthberg | 4 | -164/+167 | |
In this branch explicit casts were added everywhere were necessary, and size_t is used for sizes instead of ints. This fixes all warnings when compiling with -Weverything. | |||||
2015-01-19 | README: Bring up to date with type changes | Johannes Löthberg | 1 | -47/+46 | |
Also change the printf calls to use the proper `%zu` type for size_t instead of casting to int, and add missing spaces after commas. | |||||
2015-01-19 | sdsfreesplitres: Change count arg to size_t | Johannes Löthberg | 2 | -2/+2 | |
This makes it match sdssplitlen | |||||
2015-01-19 | Move variables into for loop, remove unnevessary lens | Johannes Löthberg | 1 | -18/+13 | |
2015-01-19 | sds.c: Add explicit casts everywhere | Johannes Löthberg | 1 | -17/+17 | |
Silences a /lot/ of warnings. | |||||
2015-01-19 | sds.c: Change remaining len vars to size_t | Johannes Löthberg | 1 | -4/+4 | |
2015-01-19 | sds.c: Change spacing around arguments and operators | Johannes Löthberg | 1 | -81/+81 | |
2015-01-19 | sdssplitlen: Change length arguments to size_t | Johannes Löthberg | 2 | -4/+4 | |
2015-01-19 | sdsheader: cast pointer through void pointer | Johannes Löthberg | 1 | -1/+3 | |
Because a char* and struct sdshdr pointer have a different alignment you get the following warning when try to cast it directly: warning: cast from 'sds' (aka 'char *') to 'struct sdshdr *' increases required alignment from 1 to 8 [-Wcast-align] To silence the warning we cast it to a void pointer first. | |||||
2015-01-19 | test.c: Make test_list static const, fix oldfree type | Johannes Löthberg | 1 | -2/+2 | |
2015-01-19 | sdsIncrLen: change incr argument to size_t | Johannes Löthberg | 2 | -2/+2 | |
2015-01-19 | sdsrange: change start/end args to ptrdiff_t | Johannes Löthberg | 2 | -2/+3 | |
An sds string can hold a much bigger value than an int can hold, but since size_t is unsigned it can’t be used for this function. Using ptrdiff_t limits the function to work on roughly 1 Exabyte long strings, but if you need to work with longer ones you probably will have your custom string library already. | |||||
2015-01-19 | sds.h: Change len and free to size_t | Johannes Löthberg | 1 | -2/+3 | |
2015-01-19 | sds.c: Disable format-nonliteral warning around sdscatvprintf | Johannes Löthberg | 1 | -0/+2 | |
2015-01-19 | sds.c: Add two function prototypes | Johannes Löthberg | 1 | -0/+3 | |
is_hex_digit and hex_digit_to_int functions had no function prototypes. Silences two warnings. | |||||
2015-01-19 | man: Add initial sdsfree(3) manpage | Johannes Löthberg | 3 | -2/+24 | |
2015-01-19 | man: Add initial sdsnew(3) manpage | Johannes Löthberg | 3 | -1/+36 | |
2015-01-19 | man: Add initial sds(3) manpage | Johannes Löthberg | 3 | -2/+42 | |
2015-01-18 | Makefile: Fix HEADERS typo | Johannes Löthberg | 1 | -1/+1 | |
2015-01-18 | sds.c: Add braces around all one-line if and while loops | Johannes Löthberg | 1 | -33/+33 | |
2015-01-18 | sds.c: add braces around naked while loops | Johannes Löthberg | 1 | -2/+4 | |
2015-01-18 | sds.{c,h}: Sort includes | Johannes Löthberg | 2 | -3/+3 | |
2015-01-18 | sds.h: len/avail: remove unnecessary temp var | Johannes Löthberg | 1 | -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-18 | sdsfromlonglong: Cast abs ternary statement to ull | Johannes Löthberg | 1 | -1/+1 | |
Fixes the warning about the ternary statement changing the signedness of value. | |||||
2015-01-17 | sds.c: All if statements should be braced | Johannes Löthberg | 1 | -5/+8 | |
2015-01-17 | Reindent with tabs. | Johannes Löthberg | 2 | -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-17 | sds.c Replace all in-place calculations with sdsheader | Johannes Löthberg | 2 | -16/+16 | |
2015-01-17 | sds.h: Add inline function for getting the sdshdr | Johannes Löthberg | 1 | -0/+4 | |