summaryrefslogtreecommitdiff
path: root/src/inlines.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-12 11:45:00 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-12 11:45:00 -0800
commit2145ef0fe27f1db9a2e6d981df996298d94fbdae (patch)
treed4c1b930699c5af44318904fda2299f5697f181e /src/inlines.h
parentf706feb47054f594bb4585558268264ae7b4346e (diff)
parent6846f65f182b9c927ed8db500341a9f403e8df8e (diff)
Merge pull request #195 from nwellnhof/fix_namespace_pollution
Fix namespace pollution
Diffstat (limited to 'src/inlines.h')
-rw-r--r--src/inlines.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/inlines.h b/src/inlines.h
index 8c6e2cb..6b3d4d4 100644
--- a/src/inlines.h
+++ b/src/inlines.h
@@ -1,13 +1,22 @@
#ifndef _INLINES_H_
#define _INLINES_H_
-unsigned char *clean_url(chunk *url);
-unsigned char *clean_autolink(chunk *url, int is_email);
-unsigned char *clean_title(chunk *title);
+unsigned char *cmark_clean_url(cmark_chunk *url);
+unsigned char *cmark_clean_autolink(cmark_chunk *url, int is_email);
+unsigned char *cmark_clean_title(cmark_chunk *title);
-node_inl* parse_inlines(strbuf *input, reference_map *refmap);
-void free_inlines(node_inl* e);
+cmark_node_inl* cmark_parse_inlines(cmark_strbuf *input, cmark_reference_map *refmap);
+void cmark_free_inlines(cmark_node_inl* e);
-int parse_reference_inline(strbuf *input, reference_map *refmap);
+int cmark_parse_reference_inline(cmark_strbuf *input, cmark_reference_map *refmap);
+
+#ifndef CMARK_NO_SHORT_NAMES
+ #define clean_url cmark_clean_url
+ #define clean_autolink cmark_clean_autolink
+ #define clean_title cmark_clean_title
+ #define parse_inlines cmark_parse_inlines
+ #define free_inlines cmark_free_inlines
+ #define parse_reference_inline cmark_parse_reference_inline
+#endif
#endif