From 3a499838a1bfa6d84852118fdd8775eac339a754 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 23 Dec 2015 08:22:24 -0800 Subject: Added parens around expressions like 1 << 1. --- src/cmark.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/cmark.h') diff --git a/src/cmark.h b/src/cmark.h index c48fa9a..1e6ad35 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -497,11 +497,11 @@ char *cmark_render_latex(cmark_node *root, int options, int width); /** Include a `data-sourcepos` attribute on all block elements. */ -#define CMARK_OPT_SOURCEPOS 1 << 1 +#define CMARK_OPT_SOURCEPOS (1 << 1) /** Render `softbreak` elements as hard line breaks. */ -#define CMARK_OPT_HARDBREAKS 1 << 2 +#define CMARK_OPT_HARDBREAKS (1 << 2) /** Suppress raw HTML and unsafe links (`javascript:`, `vbscript:`, * `file:`, and `data:`, except for `image/png`, `image/gif`, @@ -509,7 +509,7 @@ char *cmark_render_latex(cmark_node *root, int options, int width); * by a placeholder HTML comment. Unsafe links are replaced by * empty strings. */ -#define CMARK_OPT_SAFE 1 << 3 +#define CMARK_OPT_SAFE (1 << 3) /** * ### Options affecting parsing @@ -517,16 +517,16 @@ char *cmark_render_latex(cmark_node *root, int options, int width); /** Normalize tree by consolidating adjacent text nodes. */ -#define CMARK_OPT_NORMALIZE 1 << 8 +#define CMARK_OPT_NORMALIZE (1 << 8) /** Validate UTF-8 in the input before parsing, replacing illegal * sequences with the replacement character U+FFFD. */ -#define CMARK_OPT_VALIDATE_UTF8 1 << 9 +#define CMARK_OPT_VALIDATE_UTF8 (1 << 9) /** Convert straight quotes to curly, --- to em dashes, -- to en dashes. */ -#define CMARK_OPT_SMART 1 << 10 +#define CMARK_OPT_SMART (1 << 10) /** * ## Version information -- cgit v1.2.3