- Commit
- db892350447a6ffd83d22bedfe056ab1a90da547
- Parent
- 2bb51691fa389ead76f6531a677397f6c24f75f5
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Removed dependence on debug.h.
(It uses GNU extensions, and we don't need it anyway.)
My personal build of CMark ✏️
Removed dependence on debug.h.
(It uses GNU extensions, and we don't need it anyway.)
3 files changed, 4 insertions, 4 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/CMakeLists.txt | 1 | 0 | 1 |
Modified | src/blocks.c | 6 | 4 | 2 |
Modified | src/main.c | 1 | 0 | 1 |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -9,7 +9,6 @@ set(HEADERS iterator.h chunk.h references.h - debug.h bench.h utf8.h scanners.h
diff --git a/src/blocks.c b/src/blocks.c @@ -13,7 +13,6 @@ #include "inlines.h" #include "houdini.h" #include "buffer.h" -#include "debug.h" #define CODE_INDENT 4 #define TAB_STOP 4 @@ -737,7 +736,10 @@ S_process_line(cmark_parser *parser, const unsigned char *buffer, bufsize_t byte } break; default: - log_err("Unknown HTML block type %d", container->as.html_block_type); + fprintf(stderr, + "Error (%s:%d): Unknown HTML block type %d\n", + __FILE__, __LINE__, + container->as.html_block_type); exit(1); }
diff --git a/src/main.c b/src/main.c @@ -4,7 +4,6 @@ #include <errno.h> #include "config.h" #include "cmark.h" -#include "debug.h" #include "bench.h" #if defined(_WIN32) && !defined(__CYGWIN__)