- Commit
- 3826a607c17e16afedcdcec09df84e8249cf4756
- Parent
- 5afeed7e21743752e5bcb49337e1c22d9a6f75c1
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Moved MAX_LINK_LABEL_LENGTH out of public header.
Put it in ast.h.
My personal build of CMark ✏️
Moved MAX_LINK_LABEL_LENGTH out of public header.
Put it in ast.h.
3 files changed, 2 insertions, 5 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/ast.h | 2 | 1 | 1 |
Modified | src/cmark.h | 3 | 0 | 3 |
Modified | src/main.c | 2 | 1 | 1 |
diff --git a/src/ast.h b/src/ast.h @@ -12,7 +12,7 @@ extern "C" { #endif #define REFMAP_SIZE 16 -#define CMARK_MAX_LINK_LABEL_LENGTH 1000 +#define MAX_LINK_LABEL_LENGTH 1000 typedef enum { CMARK_INL_STRING,
diff --git a/src/cmark.h b/src/cmark.h @@ -9,7 +9,6 @@ extern "C" { #endif #define CMARK_VERSION "0.1" -#define CMARK_MAX_LINK_LABEL_LENGTH 1000 typedef struct cmark_node_inl cmark_node_inl; typedef struct cmark_node_block cmark_node_block; @@ -52,8 +51,6 @@ CMARK_EXPORT void cmark_free_inlines(cmark_node_inl* e); #ifndef CMARK_NO_SHORT_NAMES - #define VERSION CMARK_VERSION - #define MAX_LINK_LABEL_LENGTH CMARK_MAX_LINK_LABEL_LENGTH #define node_inl cmark_node_inl #define INL_STRING CMARK_INL_STRING #define INL_SOFTBREAK CMARK_INL_SOFTBREAK
diff --git a/src/main.c b/src/main.c @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) for (i = 1; i < argc; i++) { if (strcmp(argv[i], "--version") == 0) { - printf("cmark %s", VERSION); + printf("cmark %s", CMARK_VERSION); printf(" - CommonMark converter (c) 2014 John MacFarlane\n"); exit(0); } else if ((strcmp(argv[i], "--help") == 0) ||