pike.git / src / interpret_functions.h

version» Context lines:

pike.git/src/interpret_functions.h: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: interpret_functions.h,v 1.133 2003/01/30 14:14:56 grubba Exp $ + || $Id: interpret_functions.h,v 1.134 2003/02/15 14:09:44 grubba Exp $   */      /*    * Opcode definitions for the interpreter.    */      #include "global.h"      #undef CJUMP   #undef AUTO_BIGNUM_LOOP_TEST
pike.git/src/interpret_functions.h:914:    pop_n_elems(3);   });      OPCODE1(F_ASSIGN_LOCAL_AND_POP, "assign local and pop", 0, {    free_svalue(Pike_fp->locals + arg1);    Pike_fp->locals[arg1] = Pike_sp[-1];    Pike_sp--;   });      OPCODE1(F_ASSIGN_GLOBAL, "assign global", 0, { -  struct identifier *i; -  INT32 tmp=arg1 + Pike_fp->context.identifier_level; -  if(!Pike_fp->current_object->prog) -  Pike_error("Cannot access global variables in destructed object.\n"); -  -  i=ID_FROM_INT(Pike_fp->current_object->prog, tmp); -  if(!IDENTIFIER_IS_VARIABLE(i->identifier_flags)) -  Pike_error("Cannot assign functions or constants.\n"); -  if(i->run_time_type == PIKE_T_MIXED) -  { -  assign_svalue((struct svalue *)GLOBAL_FROM_INT(tmp), Pike_sp-1); -  }else{ -  assign_to_short_svalue((union anything *)GLOBAL_FROM_INT(tmp), -  i->run_time_type, +  object_low_set_index(Pike_fp->current_object, +  arg1 + Pike_fp->context.identifier_level,    Pike_sp-1); -  } +    });      OPCODE1(F_ASSIGN_GLOBAL_AND_POP, "assign global and pop", 0, {    struct identifier *i;    INT32 tmp=arg1 + Pike_fp->context.identifier_level;    if(!Pike_fp->current_object->prog)    Pike_error("Cannot access global variables in destructed object.\n");       i=ID_FROM_INT(Pike_fp->current_object->prog, tmp);    if(!IDENTIFIER_IS_VARIABLE(i->identifier_flags))