]> Savannah Git Hosting - gnulib.git/commit
dfa: addition of new state on demand
authorNorihiro Tanaka <noritnk@kcn.ne.jp>
Fri, 25 Nov 2016 18:43:38 +0000 (10:43 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Nov 2016 19:00:08 +0000 (11:00 -0800)
commit403adf1b40897ba108075008c10bd38d937e1539
treefe52840d9062f8393bfee3e93f3e7c3b114d9b9f
parent54092987e47225837c5d9aeb2bf68006066b4288
dfa: addition of new state on demand

* src/dfa.c (dfastate): Add argument UC, the current input character.
Fill only a group including the character in transition table.
(realloc_trans_if_necessary): Add the dummy state which means that a
transition table is assigned but the next state is not assigned.
(build_state): Return the next state.  All callers updated.
(transit_state_singlebyte): If we get the dummy state,
fill the transition table.
(dfaexec_main): Handle the dummy state.
(free_mbdata, dfafree): Consider the dummy state.
ChangeLog
lib/dfa.c