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.678 2008/06/28 22:30:54 nilsson Exp $ + || $Id: builtin_functions.c,v 1.679 2008/06/29 12:05:54 mast 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:3693:    MEMSET(ctx->set_end, 0, sizeof(ctx->set_end));    ctx->other_start = num;       for(e=0;e<num;e++)    {    {    p_wchar2 x;       if (ctx->v[num-1-e].ind->len) {    x=index_shared_string(ctx->v[num-1-e].ind,0); -  if (x<NELEM(ctx->set_start)) +  if ((size_t) x < NELEM(ctx->set_start))    ctx->set_start[x]=num-e-1;    else    ctx->other_start = num-e-1;    }       if (ctx->v[e].ind->len) {    x=index_shared_string(ctx->v[e].ind,0); -  if (x<NELEM(ctx->set_end)) +  if ((size_t) x < NELEM(ctx->set_end))    ctx->set_end[x]=e+1;    }    }    {    INT32 prefix = e-1;    if (prefix >= 0) {    ptrdiff_t tmp =    generic_find_binary_prefix(ctx->v[e].ind->str,    ctx->v[e].ind->len,    ctx->v[e].ind->size_shift,
pike.git/src/builtin_functions.c:3828:    } \    if (e < s) { \    PIKE_CONCAT(string_builder_binary_strcat, SZ) \    (&ret, ss+e, s-e); \    } \    } \    break   #define OPT_IS_CHAR(X) 1    CASE(0);   #undef OPT_IS_CHAR - #define OPT_IS_CHAR(X) ((X) < NELEM(ctx->set_end)) + #define OPT_IS_CHAR(X) ((size_t) (X) < NELEM(ctx->set_end))    CASE(1);    CASE(2);   #undef OPT_IS_CHAR    }       UNSET_ONERROR(uwp);    return finish_string_builder(&ret);   }      static struct pike_string *replace_many(struct pike_string *str,