pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:1:   /* -*- c -*-   || 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.423 2008/05/17 14:10:00 marcus Exp $ + || $Id: language.yacc,v 1.424 2008/05/18 13:42:09 grubba Exp $   */      %pure_parser      %token TOK_ARROW      /*    * Basic value pushing    */   %token TOK_CONSTANT TOK_FLOAT TOK_STRING
pike.git/src/language.yacc:4385:    * in a sequence where a block refers to the value of its    * immediate predecessor.    */      /* empty: ; */ /* line_number_info is now used in these cases. */      %%      void low_yyerror(struct pike_string *str)   { -  struct compilation *c = THIS_COMPILATION; +  struct compilation *c = MAYBE_THIS_COMPILATION;    extern int cumulative_parse_error;    -  +  if (!c) return; +     STACK_LEVEL_START(0);      #ifdef PIKE_DEBUG    if(Pike_interpreter.recoveries && Pike_sp-Pike_interpreter.evaluator_stack < Pike_interpreter.recoveries->stack_pointer)    Pike_fatal("Stack error (underflow)\n");   #endif       CHECK_COMPILER();       if (Pike_compiler->num_parse_error > 20) return;