summaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2020-01-18 23:37:32 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2020-01-23 08:25:54 -0800
commit75b48c5938f5984dbcf79a579d15c9cbd6447d12 (patch)
tree7c97c1d4fbcb6b7230e1d4893a2c3eff766fe0bc /src/node.h
parentb237924585e61532ada774bf9e70eadff00666dc (diff)
Use C string instead of chunk for custom block contents
Reduces size of struct cmark_node by 8 bytes.
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h4
1 files changed, 2 insertions, 2 deletions
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 {