X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dfa%2Fdfap.h;h=b37aa21710c4a92a9fe1c95934321cef7e8eaf6e;hb=e63cb633d580e1a364de81d4f24fb2c9fa70e279;hp=5d3c9143ed47b689bbbc49b0dd61913a603032ec;hpb=6c9fcd3b5d3108702fa1ffc92dab4ab6060f9a19;p=idzebra-moved-to-github.git diff --git a/dfa/dfap.h b/dfa/dfap.h index 5d3c914..b37aa21 100644 --- a/dfa/dfap.h +++ b/dfa/dfap.h @@ -1,4 +1,4 @@ -/* $Id: dfap.h,v 1.11 2005-01-15 19:38:18 adam Exp $ +/* $Id: dfap.h,v 1.12 2005-01-15 21:45:42 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -54,8 +54,8 @@ struct DFA_parse { struct Tnode **posar; - SetType poset; - Set *followpos; + DFASetType poset; + DFASet *followpos; const char **(*cmap)(void *vp, const char **from, int len); }; @@ -71,16 +71,16 @@ struct DFA_states { struct DFA_state *marked; /* chain of marked DFA states */ DFA_stateb *statemem; /* state memory */ int no; /* no of states (unmarked+marked) */ - SetType st; /* Position set type */ + DFASetType st; /* Position set type */ int hash; /* no hash entries in hasharray */ struct DFA_state **hasharray; /* hash pointers */ struct DFA_state **sortarray; /* sorted DFA states */ struct DFA_trans *transmem; /* transition memory */ }; -int init_DFA_states (struct DFA_states **dfasp, SetType st, int hash); +int init_DFA_states (struct DFA_states **dfasp, DFASetType st, int hash); int rm_DFA_states (struct DFA_states **dfasp); -int add_DFA_state (struct DFA_states *dfas, Set *s, +int add_DFA_state (struct DFA_states *dfas, DFASet *s, struct DFA_state **sp); struct DFA_state *get_DFA_state (struct DFA_states *dfas); void sort_DFA_states (struct DFA_states *dfas);