-/* $Id: dfa.h,v 1.11 2005-01-15 19:38:24 adam Exp $
+/* $Id: dfa.h,v 1.13 2006-05-10 08:13:18 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
02111-1307, USA.
*/
-
-
#ifndef DFA_H
#define DFA_H
#include <bset.h>
-#include <set.h>
+#include <dfaset.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <yaz/yconfig.h>
+
+YAZ_BEGIN_CDECL
struct DFA_tran {
unsigned char ch[2]; /* transition on ch[0] <= c <= ch[1] to */
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 */
#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
+ */
+