pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:15:   #include "opcodes.h"   #include "object.h"   #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"    - RCSID("$Id: opcodes.c,v 1.33 1998/12/16 07:49:37 hubbe Exp $"); + RCSID("$Id: opcodes.c,v 1.34 1999/01/21 09:08:22 hubbe Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {    INT32 i;    switch(what->type)    {    case T_ARRAY:    simple_array_index_no_free(to,what->u.array,ind);    break;   
pike.git/src/opcodes.c:114:    error("No cast method in object.\n");    apply_lfun(sp[-2].u.object, LFUN_CAST, 1);    free_svalue(sp-2);    sp[-2]=sp[-1];    sp--;    return;    }       switch(run_time_type)    { +  default: +  error("Cannot perform cast to that type.\n"); +     case T_MIXED:    return;       case T_ARRAY:    switch(sp[-1].type)    {    case T_MAPPING:    {    struct array *a=mapping_to_array(sp[-1].u.mapping);    pop_stack();