summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-23 08:22:24 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-23 08:22:24 -0800
commit3a499838a1bfa6d84852118fdd8775eac339a754 (patch)
tree342c92a4068d121ac5f81ea2f4e1a02e9e3ef6c9
parent050ef111b02691679c2eb825102a3508630f0a55 (diff)
Added parens around expressions like 1 << 1.
-rw-r--r--man/man3/cmark.314
-rw-r--r--src/cmark.h12
2 files changed, 13 insertions, 13 deletions
diff --git a/man/man3/cmark.3 b/man/man3/cmark.3
index d5532d5..0341b6d 100644
--- a/man/man3/cmark.3
+++ b/man/man3/cmark.3
@@ -1,4 +1,4 @@
-.TH cmark 3 "December 22, 2015" "LOCAL" "Library Functions Manual"
+.TH cmark 3 "December 23, 2015" "LOCAL" "Library Functions Manual"
.SH
NAME
.PP
@@ -550,7 +550,7 @@ Options affecting rendering
.nf
\fC
.RS 0n
-#define CMARK_OPT_SOURCEPOS 1 << 1
+#define CMARK_OPT_SOURCEPOS (1 << 1)
.RE
\f[]
.fi
@@ -562,7 +562,7 @@ Include a \f[C]data\-sourcepos\f[] attribute on all block elements.
.nf
\fC
.RS 0n
-#define CMARK_OPT_HARDBREAKS 1 << 2
+#define CMARK_OPT_HARDBREAKS (1 << 2)
.RE
\f[]
.fi
@@ -574,7 +574,7 @@ Render \f[C]softbreak\f[] elements as hard line breaks.
.nf
\fC
.RS 0n
-#define CMARK_OPT_SAFE 1 << 3
+#define CMARK_OPT_SAFE (1 << 3)
.RE
\f[]
.fi
@@ -593,7 +593,7 @@ Options affecting parsing
.nf
\fC
.RS 0n
-#define CMARK_OPT_NORMALIZE 1 << 8
+#define CMARK_OPT_NORMALIZE (1 << 8)
.RE
\f[]
.fi
@@ -605,7 +605,7 @@ Normalize tree by consolidating adjacent text nodes.
.nf
\fC
.RS 0n
-#define CMARK_OPT_VALIDATE_UTF8 1 << 9
+#define CMARK_OPT_VALIDATE_UTF8 (1 << 9)
.RE
\f[]
.fi
@@ -618,7 +618,7 @@ with the replacement character U+FFFD.
.nf
\fC
.RS 0n
-#define CMARK_OPT_SMART 1 << 10
+#define CMARK_OPT_SMART (1 << 10)
.RE
\f[]
.fi
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