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.128 2003/02/19 02:01:51 marcus Exp $ + || $Id: opcodes.c,v 1.129 2003/08/05 12:58:42 mast 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.128 2003/02/19 02:01:51 marcus Exp $"); + RCSID("$Id: opcodes.c,v 1.129 2003/08/05 12:58:42 mast 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:78:    mapping_index_no_free(to,what->u.mapping,ind);    break;       case T_OBJECT:    object_index_no_free(to, what->u.object, ind);    break;       case T_MULTISET:    i=multiset_member(what->u.multiset, ind);    to->type=T_INT; -  to->subtype=i ? NUMBER_UNDEFINED : 0; +  to->subtype=i ? 0 : NUMBER_UNDEFINED;    to->u.integer=i;    break;       case T_STRING:    if(ind->type==T_INT)    {    i=ind->u.integer;    if(i<0)    i+=what->u.string->len;    if(i<0 || i>=what->u.string->len)