pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.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: pike_types.c,v 1.286 2007/04/13 17:46:51 grubba Exp $ + || $Id: pike_types.c,v 1.287 2007/04/16 12:07:06 grubba Exp $   */      #include "global.h"   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"
pike.git/src/pike_types.c:4812:    if (soft_type->type != orig_type->type) break;    switch(soft_type->type) {    case T_MAPPING:    type_stack_mark();    if ((tmp = soft_cast(soft_type->car, orig_type->car,    flags ^ SOFT_WEAKER))) {    push_finished_type(tmp);    } else {    push_finished_type(zero_type_string);    } -  if ((tmp2 = soft_cast(soft_type->car, orig_type->car, flags))) { -  push_finished_type(tmp); +  if ((tmp2 = soft_cast(soft_type->cdr, orig_type->cdr, flags))) { +  push_finished_type(tmp2);    } else {    push_finished_type(zero_type_string);    } -  push_type(T_MAPPING); +  push_reverse_type(T_MAPPING);    res = pop_unfinished_type();    break;    case T_ARRAY:    case T_MULTISET:    case T_TYPE:    type_stack_mark();    if ((tmp = soft_cast(soft_type->car, orig_type->car, flags))) {    push_finished_type(tmp);    } else if (flags & SOFT_WEAKER) {    push_finished_type(mixed_type_string);