X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fdfa.h;h=f0de59c3ea9abb7d090e6b8040a063412caca3a4;hb=c20b200f539b64303b72e0bf321156772a3d8ac9;hp=a0bb90f3be39c5818131684e364a9e0ae0705a92;hpb=3c5f6226f97612c0d6ac40591f600587c5ffa858;p=idzebra-moved-to-github.git diff --git a/include/dfa.h b/include/dfa.h index a0bb90f..f0de59c 100644 --- a/include/dfa.h +++ b/include/dfa.h @@ -1,49 +1,34 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dfa.h,v $ - * Revision 1.9 1999-02-02 14:50:31 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.8 1997/09/18 08:59:18 adam - * Extra generic handle for the character mapping routines. - * - * Revision 1.7 1997/09/05 15:29:59 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.6 1996/06/04 10:20:10 adam - * Added support for character mapping. - * - * Revision 1.5 1996/01/08 09:09:48 adam - * Function dfa_parse got 'const' string argument. - * - * Revision 1.4 1995/01/25 11:31:04 adam - * Simple error reporting when parsing regular expressions. - * - * Revision 1.3 1995/01/24 16:01:30 adam - * Added -ansi to CFLAGS. - * New functions and change of data structures. - * - * Revision 1.2 1994/09/26 16:31:23 adam - * Minor changes. xmalloc declares xcalloc now. - * - * Revision 1.1 1994/09/26 10:17:43 adam - * Dfa-module header files. - * - */ +/* $Id: dfa.h,v 1.13 2006-05-10 08:13:18 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS + +This file is part of the Zebra server. + +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 +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +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. +*/ #ifndef DFA_H #define DFA_H #include -#include +#include -#ifdef __cplusplus -extern "C" { -#endif +#include + +YAZ_BEGIN_CDECL struct DFA_tran { unsigned char ch[2]; /* transition on ch[0] <= c <= ch[1] to */ @@ -61,7 +46,7 @@ struct DFA_state { struct DFA_state *next; /* next entry in free/unmarked/marked list */ struct DFA_state *link; /* link to next entry in hash chain */ struct DFA_tran *trans; /* transition list */ - Set set; /* set of positions (important nfa states) */ + DFASet set; /* set of positions (important nfa states) */ short no; /* no of this state */ short tran_no; /* no of transitions to other states */ short rule_no; /* if non-zero, this holds accept rule no */ @@ -114,8 +99,14 @@ extern unsigned short #define DFA_ERR_LP 2 #define DFA_ERR_RP 3 -#ifdef __cplusplus -} -#endif +YAZ_END_CDECL #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +