diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2020-01-18 22:27:13 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-01-23 08:25:54 -0800 |
commit | 3acbdf0965859c55fa36c65a4c0e17e92012687c (patch) | |
tree | 11cb19bc51d83d159f54d5a15be0533c4dfb3d96 /src/node.h | |
parent | df7ef9ed7b5f418897df557c9de88eaba2174703 (diff) |
Use C string instead of chunk for code info and literal
Use zero-terminated C strings instead of cmark_chunks without storing
the length. The length of code literals will be readded in a later
commit. strlen overhead for code info should be negligible.
Reduces size of struct cmark_node by 8 bytes.
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,8 +23,8 @@ typedef struct { } cmark_list; typedef struct { - cmark_chunk info; - cmark_chunk literal; + unsigned char *info; + unsigned char *literal; uint8_t fence_length; uint8_t fence_offset; unsigned char fence_char; |