summaryrefslogtreecommitdiff
path: root/src/chunk.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-19 12:08:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-19 12:08:16 -0800
commit1140f7ddd58388709ce87b4c306a7c875af5406e (patch)
tree402ce91bfad2faaf011096cdd21e22d85763e90e /src/chunk.h
parenta452b609212ec4d08832badfbdf6c3ff6fd6a7c6 (diff)
Use fully qualified versions of constants.
Diffstat (limited to 'src/chunk.h')
-rw-r--r--src/chunk.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/chunk.h b/src/chunk.h
index a8a11f6..b25831b 100644
--- a/src/chunk.h
+++ b/src/chunk.h
@@ -49,7 +49,7 @@ static CMARK_INLINE void cmark_chunk_trim(cmark_chunk *c) {
}
static CMARK_INLINE bufsize_t cmark_chunk_strchr(cmark_chunk *ch, int c,
- bufsize_t offset) {
+ 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;
@@ -74,8 +74,7 @@ static CMARK_INLINE const char *cmark_chunk_to_cstr(cmark_chunk *c) {
return (char *)str;
}
-static CMARK_INLINE void
-cmark_chunk_set_cstr(cmark_chunk *c, const char *str) {
+static CMARK_INLINE void cmark_chunk_set_cstr(cmark_chunk *c, const char *str) {
if (c->alloc) {
free(c->data);
}
@@ -97,9 +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;
}