diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-11 06:49:35 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-11 06:49:35 -0800 |
commit | 8226468b168b4b2be530e10a303a739cb401271f (patch) | |
tree | d293b080f78c865843910a0392f0e0c87fd9263c | |
parent | 179af14e3b80109d42288b9a6163901ccfbf39c8 (diff) |
Don't include debug.h in any production code.
It uses some GNU-specific things.
-rw-r--r-- | src/inlines.c | 4 | ||||
-rw-r--r-- | src/main.c | 2 |
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; @@ -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() { |