pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.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: builtin_functions.c,v 1.616 2006/03/13 11:55:05 grubba Exp $ + || $Id: builtin_functions.c,v 1.617 2006/03/25 12:43:27 grubba Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:3288:   {    INT32 c, match=-1, match_len=-1, d;    ptrdiff_t tmp;       check_c_stack(2048);       while(a<b)    {    c=(a+b)/2;    - #if 1 +     if (v[c].ind->len <= match_len) {    /* Can't be a suffix of (or is equal to) the current match. */    b = c;    continue;    } - #endif +        tmp=generic_find_binary_prefix(v[c].ind->str,    v[c].ind->len,    v[c].ind->size_shift,    str,    MINIMUM(len,v[c].ind->len),    size_shift);       if(tmp<0)    {