pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:19:   #include "pike_types.h"   #include "pike_memory.h"   #include "fd_control.h"   #include "cyclic.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "security.h"   #include "bignum.h"   #include "operators.h"    - RCSID("$Id: opcodes.c,v 1.75 2000/05/07 00:39:17 hubbe Exp $"); + RCSID("$Id: opcodes.c,v 1.76 2000/07/05 23:01:48 hubbe 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))    error("Index permission denied.\n");   #endif
pike.git/src/opcodes.c:274:    {    FLOAT_TYPE f = 0.0;       switch(sp[-1].type)    {    case T_INT:    f=(FLOAT_TYPE)(sp[-1].u.integer);    break;       case T_STRING: -  f=STRTOD(sp[-1].u.string->str,0); +  f=STRTOD_PCHARP(MKPCHARP(sp[-1].u.string->str, +  sp[-1].u.string->size_shift),0);    free_string(sp[-1].u.string);    break;       default:    error("Cannot cast %s to float.\n",get_name_of_type(sp[-1].type));    }       sp[-1].type=T_FLOAT;    sp[-1].u.float_number=f;    break;