pike.git / src / pike_search_engine.c

version» Context lines:

pike.git/src/pike_search_engine.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_search_engine.c,v 1.10 2002/10/11 01:39:35 nilsson Exp $ + || $Id: pike_search_engine.c,v 1.11 2003/04/23 13:43:08 jhs Exp $   */      /*    * Written by Fredrik Hubinette (hubbe@lysator.liu.se)    */      #define HSHIFT 0   #include "pike_search_engine2.c"   #undef HSHIFT   
pike.git/src/pike_search_engine.c:165:    ptrdiff_t needlelen,    ptrdiff_t max_haystacklen)   {    ptrdiff_t e;       s->needle=needle;    s->needlelen=needlelen;      #ifdef PIKE_DEBUG    if(needlelen < 2) -  Pike_fatal("boyer-boore-hubbe search does not work with single-character search strings!\n"); +  Pike_fatal("boyer-moore-hubbe search does not work with single-character search strings!\n");   #endif      #ifdef TUNAFISH    s->plen = 8 + ((max_haystacklen-needlelen) >> 5);    if(s->plen>needlelen) s->plen=needlelen;    if(s->plen>BMLEN) s->plen=BMLEN;   #else    s->plen=BMLEN;    if(s->plen>needlelen) s->plen=needlelen;   #endif