summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-11 06:49:35 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-11 06:49:35 -0800
commit8226468b168b4b2be530e10a303a739cb401271f (patch)
treed293b080f78c865843910a0392f0e0c87fd9263c
parent179af14e3b80109d42288b9a6163901ccfbf39c8 (diff)
Don't include debug.h in any production code.
It uses some GNU-specific things.
-rw-r--r--src/inlines.c4
-rw-r--r--src/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/inlines.c b/src/inlines.c
index 364f117..71e577b 100644
--- 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
index b2404f6..e3b58d5 100644
--- 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()
{