summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-18 11:52:32 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-18 11:52:32 -0700
commit0d8609cb073e86e0ec5511f54df663c7b7876391 (patch)
tree614bcf045717088b79ad60661f202a24c1ef6f10 /src
parent0a6a5181154cfaef300b6794f71388513a1e1281 (diff)
Rename potential_openers -> openers_bottom.
Diffstat (limited to 'src')
-rw-r--r--src/inlines.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/inlines.c b/src/inlines.c
index 48b1e22..33220ff 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -474,13 +474,13 @@ static void process_emphasis(subject *subj, delimiter *stack_bottom)
delimiter *opener;
delimiter *old_closer;
bool opener_found;
- delimiter *potential_openers[128];
+ delimiter *openers_bottom[128];
- // initialize potential_openers:
- potential_openers['*'] = stack_bottom;
- potential_openers['_'] = stack_bottom;
- potential_openers['\''] = stack_bottom;
- potential_openers['"'] = stack_bottom;
+ // initialize openers_bottom:
+ openers_bottom['*'] = stack_bottom;
+ openers_bottom['_'] = stack_bottom;
+ openers_bottom['\''] = stack_bottom;
+ openers_bottom['"'] = stack_bottom;
// move back to first relevant delim.
while (closer != NULL && closer->previous != stack_bottom) {
@@ -496,7 +496,7 @@ static void process_emphasis(subject *subj, delimiter *stack_bottom)
opener = closer->previous;
opener_found = false;
while (opener != NULL && opener != stack_bottom &&
- opener != potential_openers[closer->delim_char]) {
+ opener != openers_bottom[closer->delim_char]) {
if (opener->delim_char == closer->delim_char &&
opener->can_open) {
opener_found = true;
@@ -534,7 +534,7 @@ static void process_emphasis(subject *subj, delimiter *stack_bottom)
}
if (!opener_found) {
// set lower bound for future searches for openers:
- potential_openers[old_closer->delim_char] = closer;
+ openers_bottom[old_closer->delim_char] = closer;
if (!old_closer->can_open) {
// we can remove a closer that can't be an
// opener, once we've seen there's no