diff options
author | Andrius Bentkus <andrius.bentkus@gmail.com> | 2015-06-25 11:14:00 +0200 |
---|---|---|
committer | Andrius Bentkus <andrius.bentkus@gmail.com> | 2015-06-25 17:31:34 +0200 |
commit | 06b355f5a97bd5fb19cfad7e8065d5e8a6c37bce (patch) | |
tree | 3b658b774f028c7a0b9962411a4a6a3e21850b42 /src/cmark.h | |
parent | 2f945071616d226296068e3c61b6de2e64c813cf (diff) |
Changed version variables to functions.
This is easier to access using ffi, since some languages, like C#
like to use only function interfaces for accessing library
functionality.
fixes #60
Diffstat (limited to 'src/cmark.h')
-rw-r--r-- | src/cmark.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmark.h b/src/cmark.h index 4ff1ca0..192290c 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -525,13 +525,13 @@ char *cmark_render_commonmark(cmark_node *root, int options, int width); * In hexadecimal format, the number 0x010203 represents version 1.2.3. */ CMARK_EXPORT -extern const int cmark_version; +int cmark_version(); /** 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[]; +const char *cmark_version_string(); /** # AUTHORS * |