diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-06-24 21:55:44 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-06-24 21:55:44 -0700 |
commit | 2b1b00fb19fe470f7745c208377345975b9e0b2c (patch) | |
tree | e06c460e05653b3e9c505fc129e004b3cad9f584 /src/cmark.c | |
parent | ce5671ae0289b05322c09bb80af2d3317acd544f (diff) |
Reformatted.
Diffstat (limited to 'src/cmark.c')
-rw-r--r-- | src/cmark.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cmark.c b/src/cmark.c index d5fef63..0d3bc16 100644 --- a/src/cmark.c +++ b/src/cmark.c @@ -12,17 +12,19 @@ const char *cmark_version_string() { return CMARK_VERSION_STRING; } static void *xcalloc(size_t nmem, size_t size) { void *ptr = calloc(nmem, size); - if (!ptr) abort(); + if (!ptr) + abort(); return ptr; } static void *xrealloc(void *ptr, size_t size) { void *new_ptr = realloc(ptr, size); - if (!new_ptr) abort(); + if (!new_ptr) + abort(); return new_ptr; } -cmark_mem DEFAULT_MEM_ALLOCATOR = { xcalloc, xrealloc, free }; +cmark_mem DEFAULT_MEM_ALLOCATOR = {xcalloc, xrealloc, free}; char *cmark_markdown_to_html(const char *text, size_t len, int options) { cmark_node *doc; |