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.7 2002/10/11 01:39:35 nilsson Exp $ + || $Id: pike_search_engine2.c,v 1.8 2003/01/09 14:28:50 grubba 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:34:    }    return 0;      #endif   }      INLINE HCHAR *NameNH(memchr_search)(void *data,    HCHAR *haystack,    ptrdiff_t haystacklen)   { -  return NameNH(MEMCHR)(haystack, DO_NOT_WARN((NCHAR)(ptrdiff_t)data), haystacklen); +  return NameNH(MEMCHR)(haystack, +  DO_NOT_WARN((NCHAR)(ptrdiff_t) +  (((char *)data)-(char *)0)), +  haystacklen);   }         INLINE HCHAR *NameNH(memchr_memcmp)(NCHAR *needle,    ptrdiff_t needlelen,    HCHAR *haystack,    ptrdiff_t haystacklen)   {    NCHAR c;    HCHAR *end;