diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-16 16:40:10 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-16 16:40:10 -0800 |
commit | 3826a607c17e16afedcdcec09df84e8249cf4756 (patch) | |
tree | dc36d621679ede76b042e5dfd629e3fc743b26f3 /src | |
parent | 5afeed7e21743752e5bcb49337e1c22d9a6f75c1 (diff) |
Moved MAX_LINK_LABEL_LENGTH out of public header.
Put it in ast.h.
Diffstat (limited to 'src')
-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) || |