summaryrefslogtreecommitdiff
path: root/src/chunk.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-28 09:44:28 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-28 09:44:28 -0800
commitbc61ae39e0370d642d75f136c9adbd07cce1818f (patch)
treef2837bf06104c7cedce41d950d3c999de36f4452 /src/chunk.h
parent4ec2c47f71a94961fc85e02baa5a9f79feff7deb (diff)
parentb01c29e07a3a007f4509e1c9c309a532b330f93a (diff)
Merge pull request #222 from nwellnhof/short_name_cleanup
Short name cleanup
Diffstat (limited to 'src/chunk.h')
-rw-r--r--src/chunk.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/chunk.h b/src/chunk.h
index 7a1dbc3..22594b1 100644
--- a/src/chunk.h
+++ b/src/chunk.h
@@ -107,17 +107,16 @@ static inline cmark_chunk cmark_chunk_buf_detach(cmark_strbuf *buf)
return c;
}
-#ifndef CMARK_NO_SHORT_NAMES
- #define chunk cmark_chunk
- #define chunk_free cmark_chunk_free
- #define chunk_ltrim cmark_chunk_ltrim
- #define chunk_rtrim cmark_chunk_rtrim
- #define chunk_trim cmark_chunk_trim
- #define chunk_strchr cmark_chunk_strchr
- #define chunk_to_cstr cmark_chunk_to_cstr
- #define chunk_literal cmark_chunk_literal
- #define chunk_dup cmark_chunk_dup
- #define chunk_buf_detach cmark_chunk_buf_detach
-#endif
+// Convenience macros
+#define chunk cmark_chunk
+#define chunk_free cmark_chunk_free
+#define chunk_ltrim cmark_chunk_ltrim
+#define chunk_rtrim cmark_chunk_rtrim
+#define chunk_trim cmark_chunk_trim
+#define chunk_strchr cmark_chunk_strchr
+#define chunk_to_cstr cmark_chunk_to_cstr
+#define chunk_literal cmark_chunk_literal
+#define chunk_dup cmark_chunk_dup
+#define chunk_buf_detach cmark_chunk_buf_detach
#endif