Branch: Tag:

2000-02-15

2000-02-15 22:06:23 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

fixed a bug when external identifiers being resolved in first
compilation pass

Rev: src/language.yacc:1.163
Rev: src/las.c:1.166
Rev: src/pike_types.c:1.122
Rev: src/program.c:1.204
Rev: src/program.h:1.79
Rev: src/testsuite.in:1.278

5:   \*/   /**/   #include "global.h" - RCSID("$Id: pike_types.c,v 1.121 2000/02/03 19:09:13 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.122 2000/02/15 22:06:19 hubbe Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"
3288:    {    char *a;    struct pike_string *tmp; -  int id=FIND_LFUN(s->u.program,LFUN_CREATE); +  int id; +  +  if(!s->u.program->identifiers) +  { +  a=function_type_string->str; +  if((tmp=zzap_function_return(a, s->u.program->id))) +  return tmp; +  } +  +  id=FIND_LFUN(s->u.program,LFUN_CREATE);    if(id>=0)    {    a=ID_FROM_INT(s->u.program, id)->type->str;