cmark

My personal build of CMark ✏️

Commit
9253c0eab573e5ca0d37e4b1db77d3b0bfcf3be6
Parent
adc78c85809fb2f79f967d29713e2d9f520aea5b
Author
John MacFarlane <jgm@berkeley.edu>
Date

Changed EMPHASIS_STACK_LIMIT -> STACK_LIMIT.

We'll also use it in parsing bracketed link labels.

Diffstat

2 files changed, 2 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified src/cmark.h 2 1 1
Modified src/inlines.c 2 1 1
diff --git a/src/cmark.h b/src/cmark.h
@@ -9,7 +9,7 @@
 
 #define VERSION "0.1"
 #define CODE_INDENT 4
-#define EMPHASIS_STACK_LIMIT 1000
+#define STACK_LIMIT 1000
 
 struct node_inl {
 	enum {
diff --git a/src/inlines.c b/src/inlines.c
@@ -393,7 +393,7 @@ static node_inl* handle_strong_emph(subject* subj, unsigned char c, node_inl **l
 cannotClose:
 	inl_text = make_str(chunk_dup(&subj->input, subj->pos - numdelims, numdelims));
 
-	if (can_open && subj->emphasis_nestlevel < EMPHASIS_STACK_LIMIT)
+	if (can_open && subj->emphasis_nestlevel < STACK_LIMIT)
 	{
 		istack = (inline_stack*)malloc(sizeof(inline_stack));
                 if (istack == NULL) {