diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-12 05:56:45 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-12 05:56:45 +0300 |
commit | a9298670aee293adad4693604b6b92cac8139d9f (patch) | |
tree | ede9b1e047814bb12179920a6b496ec8b20e7d65 /dfa.c | |
parent | 01f1baef24748e4741572fbd7ed8a1dce522fe95 (diff) | |
parent | 6b9d87b595278e606096018ea16615033c5571fe (diff) | |
download | egawk-a9298670aee293adad4693604b6b92cac8139d9f.tar.gz egawk-a9298670aee293adad4693604b6b92cac8139d9f.tar.bz2 egawk-a9298670aee293adad4693604b6b92cac8139d9f.zip |
Merge branch 'master' into cmake
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 |