diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-06-18 11:46:23 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-06-18 11:46:23 -0700 |
commit | 0a6a5181154cfaef300b6794f71388513a1e1281 (patch) | |
tree | be0ed3d757b4a4b023550e9b752a0f4b2e895d99 | |
parent | 4282352c5ee73bc7591306557143d9e908800f15 (diff) |
Rename start_delim -> stack_bottom.
-rw-r--r-- | src/inlines.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/inlines.c b/src/inlines.c index 0eb24eb..48b1e22 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -468,7 +468,7 @@ static cmark_node* handle_period(subject* subj, bool smart) } } -static void process_emphasis(subject *subj, delimiter *start_delim) +static void process_emphasis(subject *subj, delimiter *stack_bottom) { delimiter *closer = subj->last_delim; delimiter *opener; @@ -477,13 +477,13 @@ static void process_emphasis(subject *subj, delimiter *start_delim) delimiter *potential_openers[128]; // initialize potential_openers: - potential_openers['*'] = start_delim; - potential_openers['_'] = start_delim; - potential_openers['\''] = start_delim; - potential_openers['"'] = start_delim; + potential_openers['*'] = stack_bottom; + potential_openers['_'] = stack_bottom; + potential_openers['\''] = stack_bottom; + potential_openers['"'] = stack_bottom; // move back to first relevant delim. - while (closer != NULL && closer->previous != start_delim) { + while (closer != NULL && closer->previous != stack_bottom) { closer = closer->previous; } @@ -495,7 +495,7 @@ static void process_emphasis(subject *subj, delimiter *start_delim) // Now look backwards for first matching opener: opener = closer->previous; opener_found = false; - while (opener != NULL && opener != start_delim && + while (opener != NULL && opener != stack_bottom && opener != potential_openers[closer->delim_char]) { if (opener->delim_char == closer->delim_char && opener->can_open) { @@ -546,8 +546,8 @@ static void process_emphasis(subject *subj, delimiter *start_delim) closer = closer->next; } } - // free all delimiters in list until start_delim: - while (subj->last_delim != start_delim) { + // free all delimiters in list until stack_bottom: + while (subj->last_delim != stack_bottom) { remove_delimiter(subj, subj->last_delim); } } |