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.608 2006/03/10 09:08:41 grubba Exp $ + || $Id: builtin_functions.c,v 1.609 2006/03/10 11:59:20 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:3459:    break;    }    }    x = ctx.v[x].prefix;    }    ctx.v[e].prefix = x;    }       length=str->len;    +  /* FIXME: We really ought to build a trie! */    for(s=0;length > 0;)    {    INT32 a,b;    ptrdiff_t ch;       ch=index_shared_string(str,s);    if((ch<(ptrdiff_t)NELEM(set_end)) && (ch >= 0))    b=set_end[ch];    else    b=num;