cmark

My personal build of CMark ✏️

Commit
5afeed7e21743752e5bcb49337e1c22d9a6f75c1
Parent
4e587e8be5300d80e23ffeec5b11ba3eedf61276
Author
John MacFarlane <jgm@berkeley.edu>
Date

Removed CMARK_CODE_INDENT, CODE_INDENT from public header.

Now it's in blocks.c, the only module that uses it.

Diffstat

3 files changed, 1 insertion, 4 deletions

Status File Name N° Changes Insertions Deletions
Modified src/ast.h 2 0 2
Modified src/blocks.c 1 1 0
Modified src/cmark.h 2 0 2
diff --git a/src/ast.h b/src/ast.h
@@ -11,8 +11,6 @@
 extern "C" {
 #endif
 
-#define CMARK_VERSION "0.1"
-#define CMARK_CODE_INDENT 4
 #define REFMAP_SIZE 16
 #define CMARK_MAX_LINK_LABEL_LENGTH 1000
 
diff --git a/src/blocks.c b/src/blocks.c
@@ -14,6 +14,7 @@
 #include "buffer.h"
 #include "debug.h"
 
+#define CODE_INDENT 4
 #define peek_at(i, n) (i)->data[n]
 
 static node_block* make_block(cmark_block_tag tag, int start_line, int start_column)
diff --git a/src/cmark.h b/src/cmark.h
@@ -9,7 +9,6 @@ extern "C" {
 #endif
 
 #define CMARK_VERSION "0.1"
-#define CMARK_CODE_INDENT 4
 #define CMARK_MAX_LINK_LABEL_LENGTH 1000
 
 typedef struct cmark_node_inl cmark_node_inl;
@@ -54,7 +53,6 @@ void cmark_free_inlines(cmark_node_inl* e);
 
 #ifndef CMARK_NO_SHORT_NAMES
   #define VERSION                   CMARK_VERSION
-  #define CODE_INDENT               CMARK_CODE_INDENT
   #define MAX_LINK_LABEL_LENGTH     CMARK_MAX_LINK_LABEL_LENGTH
   #define node_inl                  cmark_node_inl
   #define INL_STRING                CMARK_INL_STRING