]> Savannah Git Hosting - gnulib.git/commit
dfa: fix performance bug that recomputes trans
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Dec 2016 23:09:03 +0000 (15:09 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Dec 2016 23:09:54 +0000 (15:09 -0800)
commita43f8e6e833288b88023b1edcc19bd6c9ba730ec
tree5056849bc231b7ad8c0164ecc17adeba72c0a697
parent0d63463512976ffd4244a6b3ed966dba9a11e5f9
dfa: fix performance bug that recomputes trans

* lib/dfa.c (build_state): Fix performance bug introduced in Nov
25 on-demand changes.  The bug caused build_state to reset all
d->trans elements to -2 even when d->trans was already non-null.
Use C99 style decls after statements in this function.
ChangeLog
lib/dfa.c