aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ast.h2
-rw-r--r--src/cmark.h3
-rw-r--r--src/main.c2
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) ||