From 3826a607c17e16afedcdcec09df84e8249cf4756 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 16 Nov 2014 16:40:10 -0800 Subject: Moved MAX_LINK_LABEL_LENGTH out of public header. Put it in ast.h. --- src/ast.h | 2 +- src/cmark.h | 3 --- src/main.c | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ast.h b/src/ast.h index 53620c8..0370175 100644 --- 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 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 diff --git a/src/main.c b/src/main.c index 9b98718..8f04deb 100644 --- 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) || -- cgit v1.2.3