X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Flookup.c;h=b0459dd26673fc1d23872268cd1a6b446f92e225;hb=7d2e837262bb9d7b393cf01a6c5f8b079add3d11;hp=82789fc2c25a4d7d3a8ff824697fb9267cbeaf56;hpb=4478d785b7769691261005c98063b98a5a5971b3;p=idzebra-moved-to-github.git diff --git a/dict/lookup.c b/dict/lookup.c index 82789fc..b0459dd 100644 --- a/dict/lookup.c +++ b/dict/lookup.c @@ -1,8 +1,5 @@ -/* $Id: lookup.c,v 1.15 2006-08-14 10:40:09 adam Exp $ - Copyright (C) 1995-2006 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 1994-2009 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 @@ -99,6 +96,7 @@ 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); @@ -106,6 +104,7 @@ char *dict_lookup (Dict dict, const char *p) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab