diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-17 23:54:42 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-17 23:54:42 +0100 |
commit | 9d24a269ddee4ac786119ab3385c97d7e27d0117 (patch) | |
tree | d3acfffd2ea90eb9bd4ce7790277bfcf796366f8 /src/sds.h | |
parent | 1999cc5106e0b98ce3508aa59af98708a281c018 (diff) | |
download | sds-9d24a269ddee4ac786119ab3385c97d7e27d0117.tar.xz |
Reindent with tabs.
All source code should be indented with tabs and aligned with spaces.
When talking about line length a tab equals 4 spaces.
Diffstat (limited to 'src/sds.h')
-rw-r--r-- | src/sds.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -36,23 +36,23 @@ typedef char *sds; struct sdshdr { - int len; - int free; - char buf[]; + int len; + int free; + char buf[]; }; static inline struct sdshdr * sdsheader(const sds s) { - return s - (sizeof (struct sdshdr)); + return s - (sizeof (struct sdshdr)); } static inline size_t sdslen(const sds s) { - struct sdshdr *sh = sdsheader(s); - return sh->len; + struct sdshdr *sh = sdsheader(s); + return sh->len; } static inline size_t sdsavail(const sds s) { - struct sdshdr *sh = sdsheader(s); - return sh->free; + struct sdshdr *sh = sdsheader(s); + return sh->free; } sds sdsnewlen(const void *init, size_t initlen); |