Branch: Tag:

2004-01-28

2004-01-28 13:59:10 by Henrik Grubbström (Grubba) <grubba@grubba.org>

get_type_of_svalue() now returns a more lenient type for programs that haven't completed the first pass.

Rev: src/pike_types.c:1.230

2:   || 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"
4321:    /* 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;