summaryrefslogtreecommitdiff
path: root/src/chunk.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-06-24 21:55:44 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-06-24 21:55:44 -0700
commit2b1b00fb19fe470f7745c208377345975b9e0b2c (patch)
treee06c460e05653b3e9c505fc129e004b3cad9f584 /src/chunk.h
parentce5671ae0289b05322c09bb80af2d3317acd544f (diff)
Reformatted.
Diffstat (limited to 'src/chunk.h')
-rw-r--r--src/chunk.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/chunk.h b/src/chunk.h
index 9790b14..1bea422 100644
--- a/src/chunk.h
+++ b/src/chunk.h
@@ -57,7 +57,8 @@ static CMARK_INLINE bufsize_t
return p ? (bufsize_t)(p - ch->data) : ch->len;
}
-static CMARK_INLINE const char *cmark_chunk_to_cstr(cmark_mem *mem, cmark_chunk *c) {
+static CMARK_INLINE const char *cmark_chunk_to_cstr(cmark_mem *mem,
+ cmark_chunk *c) {
unsigned char *str;
if (c->alloc) {
@@ -74,7 +75,8 @@ static CMARK_INLINE const char *cmark_chunk_to_cstr(cmark_mem *mem, cmark_chunk
return (char *)str;
}
-static CMARK_INLINE void cmark_chunk_set_cstr(cmark_mem *mem, cmark_chunk *c, const char *str) {
+static CMARK_INLINE void cmark_chunk_set_cstr(cmark_mem *mem, cmark_chunk *c,
+ const char *str) {
if (c->alloc) {
mem->free(c->data);
}