From f39eaefb651064ea6b4b8f030ec98f98c94fe95a Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Mon, 30 May 2016 16:07:07 +0200 Subject: node: Memory diet Reduce the storage size for the `cmark_code` struct --- src/node.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/node.h') diff --git a/src/node.h b/src/node.h index 84b2560..65d857f 100644 --- a/src/node.h +++ b/src/node.h @@ -25,11 +25,10 @@ typedef struct { typedef struct { cmark_chunk info; cmark_chunk literal; - int fence_length; - /* fence_offset must be 0-3, so we can use int8_t */ - int8_t fence_offset; + uint8_t fence_length; + uint8_t fence_offset; unsigned char fence_char; - bool fenced; + int8_t fenced; } cmark_code; typedef struct { -- cgit v1.2.3