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.229 2003/11/24 16:38:07 grubba Exp $ + || $Id: pike_types.c,v 1.230 2004/01/28 13:59:10 grubba Exp $   */      #include "global.h" - RCSID("$Id: pike_types.c,v 1.229 2003/11/24 16:38:07 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.230 2004/01/28 13:59:10 grubba 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:4314:    id=FIND_LFUN(s->u.program,LFUN_CREATE);    if(id>=0)    {    a = ID_FROM_INT(s->u.program, id)->type;    if((a = zzap_function_return(a, s->u.program->id)))    return a;    tmp=describe_type(ID_FROM_INT(s->u.program, id)->type);    /* yywarning("Failed to zzap function return for type: %s.", tmp->str);*/    free_string(tmp);    } +  if (!(s->u.program->flags & PROGRAM_PASS_1_DONE)) { +  /* We haven't added all identifiers in s->u.program yet, +  * so we might find a create() later. +  */ +  if((a = zzap_function_return(function_type_string, s->u.program->id))) +  return a; +  }    } else {    if((a = zzap_function_return(function_type_string, s->u.program->id)))    return a;    }       type_stack_mark();    push_object_type(1, s->u.program->id);    push_type(T_VOID);    push_type(T_MANY);    return pop_unfinished_type();