diff options
-rw-r--r-- | src/ast.h | 2 | ||||
-rw-r--r-- | src/cmark.h | 3 | ||||
-rw-r--r-- | src/main.c | 2 |
3 files changed, 2 insertions, 5 deletions
@@ -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 index b214aed..4c2e261 100644 --- 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 @@ -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) || |