path: root/src/references.h
diff options
authorNick Wellnhofer <>2020-01-18 23:12:37 +0100
committerJohn MacFarlane <>2020-01-23 08:25:54 -0800
commitb237924585e61532ada774bf9e70eadff00666dc (patch)
tree4355e86e19736d1eeffd905cdbc2d2b6ea7a6430 /src/references.h
parent3acbdf0965859c55fa36c65a4c0e17e92012687c (diff)
Use C string instead of chunk for link URL and title
Use zero-terminated C strings instead of cmark_chunks without storing the length. This introduces a few additional strlen computations, but overhead should be low. Allows to reduce size of struct cmark_node later.
Diffstat (limited to 'src/references.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/references.h b/src/references.h
index 8d3631f..5038c49 100644
--- a/src/references.h
+++ b/src/references.h
@@ -12,8 +12,8 @@ extern "C" {
struct cmark_reference {
struct cmark_reference *next;
unsigned char *label;
- cmark_chunk url;
- cmark_chunk title;
+ unsigned char *url;
+ unsigned char *title;
unsigned int hash;