diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-06-20 20:30:35 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-06-20 20:30:35 +0300 |
commit | bcbe7799ffc4b051e52eaf8f7f19ff844d4c7d20 (patch) | |
tree | 3337e50edf2f7ac6a3aaa1c2ff4842c8926db17f /dfa.c | |
parent | f467d127a7f09c4af97d4acfb0694e78b50751cb (diff) | |
download | egawk-bcbe7799ffc4b051e52eaf8f7f19ff844d4c7d20.tar.gz egawk-bcbe7799ffc4b051e52eaf8f7f19ff844d4c7d20.tar.bz2 egawk-bcbe7799ffc4b051e52eaf8f7f19ff844d4c7d20.zip |
Minor bug fixes, incl build system for pc, vms.
Diffstat (limited to 'dfa.c')
-rw-r--r-- | dfa.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -582,7 +582,7 @@ static void setbit_c (int b, charclass c) { /* Do nothing if b is invalid in this character set. */ - if (MB_CUR_MAX > 1 && btowc (b) == EOF) + if (MB_CUR_MAX > 1 && btowc (b) == WEOF) return; setbit (b, c); } @@ -601,7 +601,7 @@ setbit_case_fold_c (int b, charclass c) if (MB_CUR_MAX > 1) { wint_t wc = btowc (b); - if (wc == EOF) + if (wc == WEOF) return; setbit (b, c); if (case_fold && iswalpha (wc)) @@ -1451,7 +1451,9 @@ addtok_mb (token t, int mbprop) dfa->depth = depth; } +#if MBS_SUPPORT static void addtok_wc (wint_t wc); +#endif /* Add the given token to the parse tree, maintaining the depth count and updating the maximum depth if necessary. */ |