pike.git / src / operators.c

version» Context lines:

pike.git/src/operators.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: operators.c,v 1.190 2004/09/20 12:10:52 mast Exp $ + || $Id: operators.c,v 1.191 2004/09/20 15:05:08 grubba Exp $   */      #include "global.h"   #include <math.h> - RCSID("$Id: operators.c,v 1.190 2004/09/20 12:10:52 mast Exp $"); + RCSID("$Id: operators.c,v 1.191 2004/09/20 15:05:08 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "multiset.h"   #include "mapping.h"   #include "array.h"   #include "stralloc.h"   #include "opcodes.h"   #include "operators.h"   #include "language.h"   #include "pike_memory.h"
pike.git/src/operators.c:489:       if(sp[-1].type == T_OBJECT)    {    struct object *o = sp[-1].u.object;    struct pike_string *s;    int f = FIND_LFUN(o->prog,LFUN_CAST);    if(f == -1)    Pike_error("No cast method in object.\n");    s=describe_type(type);    push_string(s); -  apply_lfun(o, f, 1); +  apply_low(o, f, 1);    stack_pop_keep_top();    }else       switch(run_time_type)    {    default:    Pike_error("Cannot perform cast to that type.\n");       case T_MIXED:    return;