X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=dfa%2Fstates.c;h=59819355b3ba50c2cd1187b1161107cccc15b85a;hp=76b3e760eab73a37f2e77cd6a3469850fd5b22b0;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hpb=0052fb5520062c328006dc3537f39d28e88f3579 diff --git a/dfa/states.c b/dfa/states.c index 76b3e76..5981935 100644 --- a/dfa/states.c +++ b/dfa/states.c @@ -38,7 +38,7 @@ int init_DFA_states (struct DFA_states **dfasp, DFASetType st, int hash) struct DFA_states *dfas; struct DFA_trans *tm; int i; - + dfas = (struct DFA_states *) imalloc (sizeof(struct DFA_states)); assert (dfas); dfas->hasharray = (struct DFA_state **) @@ -117,7 +117,7 @@ int add_DFA_state (struct DFA_states *dfas, DFASet *s, struct DFA_state **sp) sb = (DFA_stateb *) imalloc (sizeof(*sb)); sb->next = dfas->statemem; dfas->statemem = sb; - sb->state_block = si = dfas->freelist = + sb->state_block = si = dfas->freelist = (struct DFA_state *) imalloc (sizeof(struct DFA_state)*DFA_CHUNK); for (i = 0; inext = si+1;