diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-07-31 20:29:38 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-07-31 20:29:38 +0300 |
commit | d60fb05cc5db4f1ee1176a9ed7f053011f8521aa (patch) | |
tree | 2471e5d7757a3aad0f9fbf6722964a30ae1b01ee /dfa.c | |
parent | cafa8fcd5a5d593f4638b199fbf5f94a006a4aac (diff) | |
parent | 54146e27c8fd7756a944d0e168aa969624567b55 (diff) | |
download | egawk-d60fb05cc5db4f1ee1176a9ed7f053011f8521aa.tar.gz egawk-d60fb05cc5db4f1ee1176a9ed7f053011f8521aa.tar.bz2 egawk-d60fb05cc5db4f1ee1176a9ed7f053011f8521aa.zip |
Merge branch 'master' into comment
Diffstat (limited to 'dfa.c')
-rw-r--r-- | dfa.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1204,7 +1204,8 @@ parse_bracket_exp (void) if (wc != WEOF && wc2 != WEOF) { work_mbc->ranges - = maybe_realloc (work_mbc->ranges, work_mbc->nranges + 2, + = maybe_realloc (work_mbc->ranges, + work_mbc->nranges + 2, &ranges_al, sizeof *work_mbc->ranges); work_mbc->ranges[work_mbc->nranges].beg = case_fold ? towlower (wc) : wc; @@ -1213,7 +1214,8 @@ parse_bracket_exp (void) if (case_fold && (iswalpha (wc) || iswalpha (wc2))) { - work_mbc->ranges[work_mbc->nranges].beg = towupper (wc); + work_mbc->ranges[work_mbc->nranges].beg + = towupper (wc); work_mbc->ranges[work_mbc->nranges++].end = towupper (wc2); } @@ -3783,13 +3785,13 @@ dfafree (struct dfa *d) CAT (p->is==ZERO)? (q->is==ZERO)? (p->is!=ZERO && p->in plus p->left : q->right : q->is!=ZERO) ? q->in plus - p->is##q->left p->right##q->is p->is##q->is : p->right##q->left + p->is##q->left p->right##q->is p->is##q->is : p->right##q->left ZERO - OR longest common longest common (do p->is and substrings common to - leading trailing q->is have same p->in and q->in - (sub)sequence (sub)sequence length and - of p->left of p->right content) ? + OR longest common longest common (do p->is and substrings common + leading trailing to q->is have same p->in and + (sub)sequence (sub)sequence q->in length and content) ? + of p->left of p->right and q->left and q->right p->is : NULL If there's anything else we recognize in the tree, all four sequences get set |