From 3ed64d7568437e81a0746554af273faeaf2037b4 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Fri, 23 Jan 2015 21:26:49 +0100 Subject: Let cmake update version Add a new template cmark_version.h.in to generate cmark_version.h containing version information. --- src/cmark.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/cmark.h') 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 -#include "cmark_export.h" +#include +#include #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[]; -- cgit v1.2.3