dfa: simplify transition table allocation
commitaff55692da81f702ccbc461ad4f896b23c398638
authorNorihiro Tanaka <noritnk@kcn.ne.jp>
Sun, 8 Jan 2017 22:46:13 +0000 (9 07:46 +0900)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Jan 2017 05:35:09 +0000 (8 21:35 -0800)
tree6f5c26fbaa33d919a1332c7dea3dd6ec93afe1f0
parent823b5cb589366f7c8742503af980803afad0978f
dfa: simplify transition table allocation

* src/dfa.c (realloc_trans_if_necessary): Remove second argument.
Its value is derived from other variable.  Update callers.
(dfastate): Remove calculation of max number of state.
lib/dfa.c