pike.git / src / pike_search_engine.c

version» Context lines:

pike.git/src/pike_search_engine.c:25:   PCHARP PxC3(NAME,NSHIFT,N)(void *s, \    PCHARP haystack, \    ptrdiff_t haystacklen) \   { \    switch(haystack.shift) \    { \    INTERCASE(NAME,0); \    INTERCASE(NAME,1); \    INTERCASE(NAME,2); \    } \ -  fatal("Illegal shift\n"); \ +  Pike_fatal("Illegal shift\n"); \    return haystack; /* NOT_REACHED */ \   } \    \   static struct SearchMojtVtable PxC3(NAME,NSHIFT,_vtable) = { \    (SearchMojtFunc0)PxC3(NAME,NSHIFT,0), \    (SearchMojtFunc1)PxC3(NAME,NSHIFT,1), \    (SearchMojtFunc2)PxC3(NAME,NSHIFT,2), \    (SearchMojtFuncN)PxC3(NAME,NSHIFT,N), \    PxC2(NAME,_free), \   };
pike.git/src/pike_search_engine.c:66:    NCHAR *q;    struct hubbe_search_link *ptr;    INT32 linklen[NELEM(s->set)];    INT32 maxlinklength;       s->needle=needle;    s->needlelen=needlelen;      #ifdef PIKE_DEBUG    if(needlelen < 7) -  fatal("hubbe search does not work with search strings shorter than 7 characters!\n"); +  Pike_fatal("hubbe search does not work with search strings shorter than 7 characters!\n");   #endif      #ifdef TUNAFISH    hsize=52+(max_haystacklen >> 7) - (needlelen >> 8);    max =13+(max_haystacklen >> 4) - (needlelen >> 5);       if(hsize > (ptrdiff_t) NELEM(s->set))    {    hsize=NELEM(s->set);    }else{
pike.git/src/pike_search_engine.c:159:    ptrdiff_t needlelen,    ptrdiff_t max_haystacklen)   {    ptrdiff_t e;       s->needle=needle;    s->needlelen=needlelen;      #ifdef PIKE_DEBUG    if(needlelen < 2) -  fatal("boyer-boore-hubbe search does not work with single-character search strings!\n"); +  Pike_fatal("boyer-boore-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