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.207 2003/02/16 03:59:57 mast Exp $ + || $Id: pike_types.c,v 1.208 2003/02/24 20:42:53 mast Exp $   */      #include "global.h" - RCSID("$Id: pike_types.c,v 1.207 2003/02/16 03:59:57 mast Exp $"); + RCSID("$Id: pike_types.c,v 1.208 2003/02/24 20:42:53 mast Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"   #include "constants.h"   #include "object.h"   #include "multiset.h"
pike.git/src/pike_types.c:3378:    }    }    if(CDR(n)->token == F_CONSTANT && CDR(n)->u.sval.type==T_STRING)    {    i = find_shared_string_identifier(CDR(n)->u.sval.u.string, p);    if(i==-1)    {    add_ref(mixed_type_string);    return mixed_type_string;    }else{ - #if 0 -  if(t->car || -  (p->identifier_references[i].id_flags & ID_NOMASK) || -  (ID_FROM_INT(p, i)->identifier_flags & IDENTIFIER_PROTOTYPED)) -  { - #endif +     add_ref(ID_FROM_INT(p, i)->type);    return ID_FROM_INT(p, i)->type; - #if 0 -  }else{ -  add_ref(mixed_type_string); -  return mixed_type_string; +     } - #endif +     }    }    } -  } +     default:    add_ref(mixed_type_string);    return mixed_type_string;       case T_MIXED:    if (lex.pragmas & ID_STRICT_TYPES) {    yywarning("Indexing mixed.");    }    add_ref(mixed_type_string);    return mixed_type_string;