- Commit
- 0d8609cb073e86e0ec5511f54df663c7b7876391
- Parent
- 0a6a5181154cfaef300b6794f71388513a1e1281
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Rename potential_openers -> openers_bottom.
My personal build of CMark ✏️
Rename potential_openers -> openers_bottom.
1 file changed, 8 insertions, 8 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/inlines.c | 16 | 8 | 8 |
diff --git 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