aboutsummaryrefslogtreecommitdiff
path: root/src/scanners.h
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-15 19:55:59 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-16 21:33:43 +0100
commit8c34fdc1b2d67ba440f5ad6cc5f81df4a3bcd937 (patch)
treed6ecf063869d208415041b0c6bd43073f08dcbbb /src/scanners.h
parent76b7e4241c840480beaef5ac6b711301f066251e (diff)
Declare all functions as extern "C"
Diffstat (limited to 'src/scanners.h')
-rw-r--r--src/scanners.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/scanners.h b/src/scanners.h
index 243a970..3269112 100644
--- a/src/scanners.h
+++ b/src/scanners.h
@@ -1,5 +1,9 @@
#include "cmark.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int _scan_at(int (*scanner)(const unsigned char *), chunk *c, int offset);
int _scan_autolink_uri(const unsigned char *p);
int _scan_autolink_email(const unsigned char *p);
@@ -28,3 +32,7 @@ int _scan_entity(const unsigned char *p);
#define scan_open_code_fence(c, n) _scan_at(&_scan_open_code_fence, c, n)
#define scan_close_code_fence(c, n) _scan_at(&_scan_close_code_fence, c, n)
#define scan_entity(c, n) _scan_at(&_scan_entity, c, n)
+
+#ifdef __cplusplus
+}
+#endif