pike.git / src / pike_search_engine2.c

version» Context lines:

pike.git/src/pike_search_engine2.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_engine2.c,v 1.6 2002/10/08 20:22:25 nilsson Exp $ - \*/ +    /* -  + || 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_engine2.c,v 1.7 2002/10/11 01:39:35 nilsson Exp $ + */ +  + /*    * NCHAR = Needle character    * HCHAR = Haystack character    */      static INLINE HCHAR *NameNH(MEMCHR)(HCHAR *p, NCHAR c, ptrdiff_t e)   {   #if NSHIFT > HSHIFT    if(c > (1<<(8*HSHIFT))) return 0;   #endif    return NameH(MEMCHR)(p,c,e);
pike.git/src/pike_search_engine2.c:182:    if(where<haystack) continue;       if(where+NEEDLELEN>end) return 0;       if(!NameNH(MEMCMP)(NEEDLE,where,NEEDLELEN))    return where;    }    }    return 0;   } -  +