Branch: Tag:

1998-01-19

1998-01-19 18:38:46 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

fixed better error messages and a bug in forward declaring (no longer needed)

Rev: src/language.yacc:1.52
Rev: src/las.c:1.42
Rev: src/stralloc.c:1.22

162:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.51 1998/01/13 22:56:43 hubbe Exp $"); + RCSID("$Id: language.yacc,v 1.52 1998/01/19 18:38:45 hubbe Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
1272:       if(throw_value.type == T_STRING)    { +  if(compiler_pass==2)    my_yyerror("%s",throw_value.u.string->str); -  +  else +  $$=mknode(F_UNDEFINED,0,0);    }    else if(IS_ZERO(sp-1) && sp[-1].subtype==1)    { -  +  if(compiler_pass==2)    my_yyerror("'%s' undefined.", $1->str); -  +  else +  $$=mknode(F_UNDEFINED,0,0);    }else{    $$=mkconstantsvaluenode(sp-1);    }