Commit 23c8b490 authored by Paul Eggert's avatar Paul Eggert
Browse files

dfa: remove one dependency on MB_CUR_MAX

* lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
parent 99969d03
2019-12-16 Paul Eggert <eggert@cs.ucla.edu>
 
dfa: remove one dependency on MB_CUR_MAX
* lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
dfa: remove struct lexer_state.cur_mb_len
* lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
as it’s not needed and the code is simpler without it.
......@@ -4022,7 +4022,7 @@ dfamust (struct dfa const *d)
bool endline = false;
bool need_begline = false;
bool need_endline = false;
bool case_fold_unibyte = d->syntax.case_fold && MB_CUR_MAX == 1;
bool case_fold_unibyte = d->syntax.case_fold & !d->localeinfo.multibyte;
for (idx_t ri = 1; ri + 1 < d->tindex; ri++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment