# Copyright (C) 1994, Index Data I/S
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.18 1995-11-20 11:58:03 adam Exp $
+# $Id: Makefile,v 1.19 1995-12-06 14:43:01 adam Exp $
SHELL=/bin/sh
RANLIB=ranlib
DEFS=$(INCLUDE)
LIB=../lib/dict.a
PO = scan.o dopen.o dclose.o drdwr.o open.o close.o insert.o lookup.o \
- lookupec.o lookgrep.o
+ lookupec.o lookgrep.o delete.o
CPP=$(CC) -E
all: $(LIB)
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: lookgrep.c,v $
- * Revision 1.10 1995-11-16 17:00:44 adam
+ * Revision 1.11 1995-12-06 14:43:02 adam
+ * New function: dict_delete.
+ *
+ * Revision 1.10 1995/11/16 17:00:44 adam
* Changed stupid log.
*
* Revision 1.9 1995/10/27 13:58:09 adam
struct DFA *dfa = dfa_init();
int i, d;
+ logf (LOG_DEBUG, "dict_lookup_grep '%s' range=%d", pattern, range);
i = dfa_parse (dfa, &this_pattern);
if (i || *this_pattern)
{
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dict.h,v $
- * Revision 1.15 1995-10-27 13:59:17 adam
+ * Revision 1.16 1995-12-06 14:41:13 adam
+ * New function: dict_delete.
+ *
+ * Revision 1.15 1995/10/27 13:59:17 adam
* Function dict_look_grep got extra parameter max_pos that upon return
* hold length of longest prefix that matches pattern.
*
int dict_close (Dict dict);
int dict_insert (Dict dict, const Dict_char *p, int userlen,
void *userinfo);
+int dict_delete (Dict dict, const Dict_char *p);
char *dict_lookup (Dict dict, const Dict_char *p);
int dict_lookup_ec (Dict dict, Dict_char *p, int range,
int (*f)(Dict_char *name));