X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=dict%2Flookgrep.c;h=39d2b3f4dcfe0e28a28fd43a4be71dd51955bc3d;hp=3e094e1e49f6681113d3fc028109f3e7537b19f3;hb=55a5cde7eb23fb9aa5a8386d34bb1b6e131c19d8;hpb=5d51844baabbb37b83afdd9b10db0a6c53cd1905 diff --git a/dict/lookgrep.c b/dict/lookgrep.c index 3e094e1..39d2b3f 100644 --- a/dict/lookgrep.c +++ b/dict/lookgrep.c @@ -1,10 +1,14 @@ /* - * Copyright (C) 1994-1996, Index Data I/S + * Copyright (C) 1994-1998, Index Data I/S * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: lookgrep.c,v $ - * Revision 1.20 1997-10-27 14:33:03 adam + * Revision 1.21 1998-06-24 12:16:12 adam + * Support for relations on text operands. Open range support in + * DFA module (i.e. [-j], [g-]). + * + * Revision 1.20 1997/10/27 14:33:03 adam * Moved towards generic character mapping depending on "structure" * field in abstract syntax file. Fixed a few memory leaks. Fixed * bug with negative integers when doing searches with relational @@ -419,6 +423,13 @@ int dict_lookup_grep (Dict dict, const char *pattern, int range, void *client, struct DFA *dfa = dfa_init(); int i, d; +#if 0 + debug_dfa_trav = 1; + debug_dfa_tran = 1; + debug_dfa_followpos = 1; + dfa_verbose = 1; +#endif + logf (LOG_DEBUG, "dict_lookup_grep range=%d", range); for (i = 0; pattern[i]; i++) {