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.10 2008/06/23 19:30:42 mast Exp $ + || $Id: pike_search_engine2.c,v 1.11 2010/08/14 16:16:34 jonasw Exp $   */      /*    * NCHAR = Needle character    * HCHAR = Haystack character    */      static INLINE HCHAR *NameNH(MEMCHR)(HCHAR *p, NCHAR c, ptrdiff_t e)   {   #if NSHIFT > HSHIFT
pike.git/src/pike_search_engine2.c:30:    {    if(*b<*a) return -1;    if(*b>*a) return 1;    }    }    return 0;      #endif   }    - INLINE HCHAR *NameNH(memchr_search)(void *data, + HCHAR *NameNH(memchr_search)(void *data,    HCHAR *haystack,    ptrdiff_t haystacklen)   {    return NameNH(MEMCHR)(haystack,    DO_NOT_WARN((NCHAR)(ptrdiff_t) PTR_TO_INT(data)),    haystacklen);   }         INLINE HCHAR *NameNH(memchr_memcmp)(NCHAR *needle,