pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:17:   #include "error.h"   #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"    - RCSID("$Id: opcodes.c,v 1.46 1999/10/22 16:50:53 noring Exp $"); + RCSID("$Id: opcodes.c,v 1.47 1999/10/22 18:16:15 noring 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:228:    break;       default:    error("Cannot cast %s to int.\n",get_name_of_type(sp[-1].type));    }       break;       case T_FLOAT:    { -  FLOAT_TYPE f; +  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);    free_string(sp[-1].u.string);    break;       default:    error("Cannot cast %s to float.\n",get_name_of_type(sp[-1].type)); -  f=0.0; +     }       sp[-1].type=T_FLOAT;    sp[-1].u.float_number=f;    break;    }       case T_STRING:    {    char buf[200];
pike.git/src/opcodes.c:735:      static INT32 really_low_sscanf(char *input,    long input_len,    char *match,    long match_len,    long *chars_matched,    int *success)   {    struct svalue sval;    int e,cnt,matches,eye,arg; -  int no_assign,field_length,minus_flag; +  int no_assign = 0, field_length = 0, minus_flag = 0;    char set[256];    struct svalue *argp;       success[0]=0;       arg=eye=matches=0;       for(cnt=0;cnt<match_len;cnt++)    {    for(;cnt<match_len;cnt++)