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.133 2003/01/15 19:07:50 grubba Exp $ + || $Id: opcodes.c,v 1.134 2003/01/26 16:15:05 mirar 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.133 2003/01/15 19:07:50 grubba Exp $"); + RCSID("$Id: opcodes.c,v 1.134 2003/01/26 16:15:05 mirar 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:399:    Pike_fatal("cast: Bad shift: %d.\n", shift);    break;    }    s = end_shared_string(s);    pop_stack();    push_string(s);    }    return;       case T_INT: -  sprintf(buf, "%ld", (long)sp[-1].u.integer); +  sprintf(buf, "%"PRINTPIKEINT"d", sp[-1].u.integer);    break;       case T_FLOAT:    sprintf(buf, "%f", (double)sp[-1].u.float_number);    break;       default:    Pike_error("Cannot cast %s to string.\n", get_name_of_type(sp[-1].type));    }