projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug #685: Optimize xelm/melm matching. Indexing the Koha collection
[idzebra-moved-to-github.git]
/
dfa
/
dfa.c
diff --git
a/dfa/dfa.c
b/dfa/dfa.c
index
f01453e
..
60c5e99
100644
(file)
--- a/
dfa/dfa.c
+++ b/
dfa/dfa.c
@@
-1,4
+1,4
@@
-/* $Id: dfa.c,v 1.37 2006-08-14 10:40:08 adam Exp $
+/* $Id: dfa.c,v 1.38 2006-09-28 18:38:45 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
Copyright (C) 1995-2006
Index Data ApS
@@
-1097,6
+1097,11
@@
void dfa_set_cmap (struct DFA *dfa, void *vp,
dfa->parse_info->cmap_data = vp;
}
dfa->parse_info->cmap_data = vp;
}
+int dfa_get_last_rule (struct DFA *dfa)
+{
+ return dfa->parse_info->rule;
+}
+
int dfa_parse (struct DFA *dfa, const char **pattern)
{
struct Tnode *top;
int dfa_parse (struct DFA *dfa, const char **pattern)
{
struct Tnode *top;