summaryrefslogtreecommitdiff
path: root/src/inlines.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-19 12:08:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-19 12:08:16 -0800
commit1140f7ddd58388709ce87b4c306a7c875af5406e (patch)
tree402ce91bfad2faaf011096cdd21e22d85763e90e /src/inlines.c
parenta452b609212ec4d08832badfbdf6c3ff6fd6a7c6 (diff)
Use fully qualified versions of constants.
Diffstat (limited to 'src/inlines.c')
-rw-r--r--[-rwxr-xr-x]src/inlines.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/inlines.c b/src/inlines.c
index 3275ddd..38ee0fb 100755..100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -284,7 +284,7 @@ static int scan_delims(subject *subj, unsigned char c, bool *can_open,
before_char_pos -= 1;
}
len = cmark_utf8proc_iterate(subj->input.data + before_char_pos,
- subj->pos - before_char_pos, &before_char);
+ subj->pos - before_char_pos, &before_char);
if (len == -1) {
before_char = 10;
}
@@ -301,7 +301,7 @@ static int scan_delims(subject *subj, unsigned char c, bool *can_open,
}
len = cmark_utf8proc_iterate(subj->input.data + subj->pos,
- subj->input.len - subj->pos, &after_char);
+ subj->input.len - subj->pos, &after_char);
if (len == -1) {
after_char = 10;
}
@@ -309,10 +309,10 @@ static int scan_delims(subject *subj, unsigned char c, bool *can_open,
!(cmark_utf8proc_is_punctuation(after_char) &&
!cmark_utf8proc_is_space(before_char) &&
!cmark_utf8proc_is_punctuation(before_char));
- right_flanking =
- numdelims > 0 && !cmark_utf8proc_is_space(before_char) &&
- !(cmark_utf8proc_is_punctuation(before_char) &&
- !cmark_utf8proc_is_space(after_char) && !cmark_utf8proc_is_punctuation(after_char));
+ right_flanking = numdelims > 0 && !cmark_utf8proc_is_space(before_char) &&
+ !(cmark_utf8proc_is_punctuation(before_char) &&
+ !cmark_utf8proc_is_space(after_char) &&
+ !cmark_utf8proc_is_punctuation(after_char));
if (c == '_') {
*can_open = left_flanking &&
(!right_flanking || cmark_utf8proc_is_punctuation(before_char));
@@ -944,10 +944,10 @@ static cmark_node *handle_newline(subject *subj) {
bufsize_t nlpos = subj->pos;
// skip over cr, crlf, or lf:
if (peek_at(subj, subj->pos) == '\r') {
- advance(subj);
+ advance(subj);
}
if (peek_at(subj, subj->pos) == '\n') {
- advance(subj);
+ advance(subj);
}
// skip spaces at beginning of line
skip_spaces(subj);