X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=dfa%2Fdfap.h;h=76751581abf9a73bd9036cd9b6143598bc41406f;hp=ecd6392b82d6d4b1f26ead556a236e87d06717b3;hb=e4c6861efeeea654bfb00c5f0239ee258629d77f;hpb=896c0427df9d8eff5de6a1735dcd992e067df844 diff --git a/dfa/dfap.h b/dfa/dfap.h index ecd6392..7675158 100644 --- a/dfa/dfap.h +++ b/dfa/dfap.h @@ -1,8 +1,5 @@ -/* $Id: dfap.h,v 1.10 2002-08-02 19:26:55 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 - Index Data Aps - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 2004-2013 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -15,9 +12,9 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ @@ -54,8 +51,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 +68,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); @@ -91,3 +88,12 @@ void add_DFA_tran (struct DFA_states *, struct DFA_state *, } #endif #endif +/* + * Local variables: + * c-basic-offset: 4 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +