aboutsummaryrefslogtreecommitdiffstats
path: root/src/sds.h
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-17 23:54:42 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-17 23:54:42 +0100
commit9d24a269ddee4ac786119ab3385c97d7e27d0117 (patch)
treed3acfffd2ea90eb9bd4ce7790277bfcf796366f8 /src/sds.h
parent1999cc5106e0b98ce3508aa59af98708a281c018 (diff)
downloadsds-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.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sds.h b/src/sds.h
index 4c7ae5f..2d98969 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -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);