summaryrefslogtreecommitdiff
path: root/src/chunk.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-28 16:05:42 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-28 16:05:42 -0800
commit11a29f6219ab9c72c0863e47ba386d7b3e1162d5 (patch)
tree7811d042876a5e6061e5543e48ec2e42f75e8aa5 /src/chunk.h
parentc22b173c1fee932a9469f95c71f74a9ec0ca1784 (diff)
Reformat sources.
Diffstat (limited to 'src/chunk.h')
-rw-r--r--src/chunk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chunk.h b/src/chunk.h
index b25831b..7007492 100644
--- a/src/chunk.h
+++ b/src/chunk.h
@@ -48,8 +48,8 @@ static CMARK_INLINE void cmark_chunk_trim(cmark_chunk *c) {
cmark_chunk_rtrim(c);
}
-static CMARK_INLINE bufsize_t cmark_chunk_strchr(cmark_chunk *ch, int c,
- bufsize_t offset) {
+static CMARK_INLINE bufsize_t
+ cmark_chunk_strchr(cmark_chunk *ch, int c, bufsize_t offset) {
const unsigned char *p =
(unsigned char *)memchr(ch->data + offset, c, ch->len - offset);
return p ? (bufsize_t)(p - ch->data) : ch->len;
@@ -96,8 +96,8 @@ static CMARK_INLINE cmark_chunk cmark_chunk_literal(const char *data) {
return c;
}
-static CMARK_INLINE cmark_chunk cmark_chunk_dup(const cmark_chunk *ch,
- bufsize_t pos, bufsize_t len) {
+static CMARK_INLINE cmark_chunk
+ cmark_chunk_dup(const cmark_chunk *ch, bufsize_t pos, bufsize_t len) {
cmark_chunk c = {ch->data + pos, len, 0};
return c;
}