cmark

My personal build of CMark ✏️

Commit
8226468b168b4b2be530e10a303a739cb401271f
Parent
179af14e3b80109d42288b9a6163901ccfbf39c8
Author
John MacFarlane <jgm@berkeley.edu>
Date

Don't include debug.h in any production code.

It uses some GNU-specific things.

Diffstat

2 files changed, 3 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified src/inlines.c 4 2 2
Modified src/main.c 2 1 1
diff --git a/src/inlines.c b/src/inlines.c
@@ -9,7 +9,6 @@
 #include "utf8.h"
 #include "scanners.h"
 #include "inlines.h"
-#include "debug.h"
 
 
 typedef struct DelimiterStack {
@@ -155,7 +154,8 @@ extern void free_inlines(node_inl* e)
 		        splice_into_list(e, e->content.inlines);
 			break;
 		default:
-		        log_warn("Unknown inline tag %d", e->tag);
+		        fprintf(stderr, "[WARN] (%s:%d) Unknown inline tag %d",
+				__FILE__, __LINE__, e->tag);
 			break;
 		}
 		next = e->next;
diff --git a/src/main.c b/src/main.c
@@ -1,8 +1,8 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <errno.h>
 #include "cmark.h"
-#include "debug.h"
 
 void print_usage()
 {