pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:105:   %left TOK_LSH TOK_RSH   %left '+' '-'   %left '*' '%' '/'   %right TOK_NOT '~'   %nonassoc TOK_INC TOK_DEC      %{   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.247 2001/05/14 03:27:44 hubbe Exp $"); + RCSID("$Id: language.yacc,v 1.248 2001/06/08 19:32:16 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif      #include "interpret.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "las.h"   #include "interpret.h"
pike.git/src/language.yacc:3652:    if (lex.current_file) {    ref_push_string(lex.current_file);    } else {    /* yyerror() can be called from define_function(), which    * can be called by the C module initialization code.    */    push_constant_text("");    }    push_int(lex.current_line);    push_text(str); -  if (error_handler && error_handler->prog) { -  safe_apply(error_handler, "compile_error", 3); -  } else { -  SAFE_APPLY_MASTER("compile_error", 3); -  } +  safe_apply_handler("compile_error", error_handler, compat_handler, 3);    pop_stack();    }else{    if (lex.current_file) {    (void)fprintf(stderr, "%s:%ld: %s\n",    lex.current_file->str,    (long)lex.current_line,    str);    } else {    (void)fprintf(stderr, "NULL:%ld: %s\n",    (long)lex.current_line,