summaryrefslogtreecommitdiff
path: root/src/cmark.h
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2015-01-23 21:26:49 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2015-01-23 21:26:49 +0100
commit3ed64d7568437e81a0746554af273faeaf2037b4 (patch)
treebe35e33a616a8f0bd117045aa960ed9077f7bd38 /src/cmark.h
parent3248801a925449644071671dcd85e370303071b4 (diff)
Let cmake update version
Add a new template cmark_version.h.in to generate cmark_version.h containing version information.
Diffstat (limited to 'src/cmark.h')
-rw-r--r--src/cmark.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/cmark.h b/src/cmark.h
index faa5150..9f312bc 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -2,7 +2,8 @@
#define CMARK_H
#include <stdio.h>
-#include "cmark_export.h"
+#include <cmark_export.h>
+#include <cmark_version.h>
#ifdef __cplusplus
extern "C" {
@@ -499,8 +500,8 @@ char *cmark_render_man(cmark_node *root, long options);
* ## Version information
*/
-/** Macro containing the library version as integer for compile time
- * checks.
+/** The library version as integer for runtime checks. Also available as
+ * macro CMARK_VERSION for compile time checks.
*
* * Bits 16-23 contain the major version.
* * Bits 8-15 contain the minor version.
@@ -508,18 +509,11 @@ char *cmark_render_man(cmark_node *root, long options);
*
* In hexadecimal format, the number 0x010203 represents version 1.2.3.
*/
-#define CMARK_VERSION 0x000100
-
-/** Macro containing the library version string for compile time checks.
- */
-#define CMARK_VERSION_STRING "0.1.0"
-
-/** The library version as integer for runtime checks.
- */
CMARK_EXPORT
extern const int cmark_version;
-/** The library version string for runtime checks.
+/** The library version string for runtime checks. Also available as
+ * macro CMARK_VERSION_STRING for compile time checks.
*/
CMARK_EXPORT
extern const char cmark_version_string[];