X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Flookup.c;h=aa75925c6b265bd9b3f6b39f769815ca2c97e18b;hb=617e9bf364131235f70aedd813fedabe278a061c;hp=f22054276b3a0f3957f2f1da04563fcbd05dd526;hpb=6c9fcd3b5d3108702fa1ffc92dab4ab6060f9a19;p=idzebra-moved-to-github.git diff --git a/dict/lookup.c b/dict/lookup.c index f220542..aa75925 100644 --- a/dict/lookup.c +++ b/dict/lookup.c @@ -1,8 +1,5 @@ -/* $Id: lookup.c,v 1.13 2005-01-15 19:38:23 adam Exp $ - Copyright (C) 1995-2005 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 1995-2008 Index Data 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 @@ -15,9 +12,9 @@ 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. +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ @@ -99,7 +96,16 @@ static char *dict_look (Dict dict, const Dict_char *str, Dict_ptr ptr) char *dict_lookup (Dict dict, const char *p) { + dict->no_lookup++; if (!dict->head.root) return NULL; return dict_look (dict, (const Dict_char *) p, dict->head.root); } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +