From 75b48c5938f5984dbcf79a579d15c9cbd6447d12 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 18 Jan 2020 23:37:32 +0100 Subject: Use C string instead of chunk for custom block contents Reduces size of struct cmark_node by 8 bytes. --- src/node.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/node.h') diff --git a/src/node.h b/src/node.h index 9658d1f..b557f12 100644 --- a/src/node.h +++ b/src/node.h @@ -42,8 +42,8 @@ typedef struct { } cmark_link; typedef struct { - cmark_chunk on_enter; - cmark_chunk on_exit; + unsigned char *on_enter; + unsigned char *on_exit; } cmark_custom; enum cmark_node__internal_flags { -- cgit v1.2.3