Branch: Tag:

2004-03-13

2004-03-13 16:14:15 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Removed extraneous error "Class definition failed.".
Increased parse error limit per class from 10 to 20.

Rev: src/language.yacc:1.329

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.328 2004/03/13 14:45:06 grubba Exp $ + || $Id: language.yacc,v 1.329 2004/03/13 16:14:15 grubba Exp $   */      %pure_parser
113:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.328 2004/03/13 14:45:06 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.329 2004/03/13 16:14:15 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
2513:       /* fprintf(stderr, "LANGUAGE.YACC: CLASS end\n"); */    -  if(!p) { -  yyerror("Class definition failed."); -  }else{ +  if(p) {    free_program(p);    }   
3921:    Pike_fatal("Stack error (underflow)\n");   #endif    -  if (Pike_compiler->num_parse_error > 10) return; +  if (Pike_compiler->num_parse_error > 20) return;    Pike_compiler->num_parse_error++;    cumulative_parse_error++;