pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.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: opcodes.c,v 1.127 2002/12/01 18:53:05 mast Exp $ + || $Id: opcodes.c,v 1.128 2003/02/19 02:01:51 marcus Exp $   */      #include "global.h"   #include <errno.h>   #include <math.h>   #include <ctype.h>   #include "interpret.h"   #include "svalue.h"   #include "array.h"   #include "stralloc.h"
pike.git/src/opcodes.c:23:   #include "fd_control.h"   #include "cyclic.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "security.h"   #include "bignum.h"   #include "operators.h"      #define sp Pike_sp    - RCSID("$Id: opcodes.c,v 1.127 2002/12/01 18:53:05 mast Exp $"); + RCSID("$Id: opcodes.c,v 1.128 2003/02/19 02:01:51 marcus Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {    INT32 i;      #ifdef PIKE_SECURITY    if(what->type <= MAX_COMPLEX)    if(!CHECK_DATA_SECURITY(what->u.array, SECURITY_BIT_INDEX))    Pike_error("Index permission denied.\n");   #endif
pike.git/src/opcodes.c:934:    } \    \   CHAROPT( \    if(set_size) \    { \    INT32 *order; \    set->a=aggregate_array(set_size*2); \    order=get_switch_order(set->a); \    for(e=0;e<(size_t)set->a->size;e+=2) \    { \ -  if(order[e]+1 != order[e+1]) \ -  { \ +  if(order[e]+1 != order[e+1] && \ +  order[e+1]+1 != order[e]) { \    free_array(set->a); \    set->a=0; \    free((char *)order); \    Pike_error("Overlapping ranges in sscanf not supported.\n"); \    } \    } \    \    order_array(set->a,order); \    free((char *)order); \    } \