From bcbe7799ffc4b051e52eaf8f7f19ff844d4c7d20 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 20 Jun 2011 20:30:35 +0300 Subject: Minor bug fixes, incl build system for pc, vms. --- dfa.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dfa.c') diff --git a/dfa.c b/dfa.c index f1557423..0c110548 100644 --- a/dfa.c +++ b/dfa.c @@ -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. */ -- cgit v1.2.3