Branch: Tag:

2002-10-25

2002-10-25 13:13:57 by Marcus Comstedt <marcus@mc.pp.se>

Don't discard error messages when doing inherits etc.

Rev: src/builtin_functions.c:1.449
Rev: src/docode.c:1.151
Rev: src/language.yacc:1.303
Rev: src/las.c:1.306
Rev: src/las.h:1.59

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: language.yacc,v 1.302 2002/10/12 11:54:30 grubba Exp $ + || $Id: language.yacc,v 1.303 2002/10/25 13:13:57 marcus Exp $   */      %pure_parser
113:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.302 2002/10/12 11:54:30 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.303 2002/10/25 13:13:57 marcus Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
546:    } else {    if(!Pike_compiler->num_parse_error)    { -  ptrdiff_t tmp=eval_low($3); +  ptrdiff_t tmp=eval_low($3,1);    if(tmp < 1)    {    yyerror("Error in constant definition.");
1725:    if(Pike_compiler->compiler_pass==2)    yyerror("Constant definition is not constant.");    }else{ -  ptrdiff_t tmp=eval_low($3); +  ptrdiff_t tmp=eval_low($3,1);    if(tmp < 1)    {    yyerror("Error in constant definition.");
2526:    } else {    if(!Pike_compiler->num_parse_error)    { -  ptrdiff_t tmp=eval_low($2); +  ptrdiff_t tmp=eval_low($2,1);    if(tmp < 1)    {    yyerror("Error in enum definition.");