From d8442c43066fe2ff875c74af5c8eda35437adb1e Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 10 Apr 2019 12:43:32 +0000 Subject: parse.y: fix fatal messages * parse.y (rb_parser_fatal): fix "parser" in the message which was replaced accidentally. it is not the argument name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index ff4fe986fe..90652686db 100644 --- a/parse.y +++ b/parse.y @@ -9307,7 +9307,7 @@ void rb_parser_fatal(struct parser_params *p, const char *fmt, ...) { va_list ap; - VALUE mesg = rb_str_new_cstr("internal p error: "); + VALUE mesg = rb_str_new_cstr("internal parser error: "); va_start(ap, fmt); rb_str_vcatf(mesg, fmt, ap); @@ -9317,13 +9317,13 @@ rb_parser_fatal(struct parser_params *p, const char *fmt, ...) mesg = rb_str_new(0, 0); append_lex_state_name(p->lex.state, mesg); - compile_error(p, "p->lex.state: %"PRIsVALUE, mesg); + compile_error(p, "lex.state: %"PRIsVALUE, mesg); rb_str_resize(mesg, 0); append_bitstack_value(p->cond_stack, mesg); - compile_error(p, "p->cond_stack: %"PRIsVALUE, mesg); + compile_error(p, "cond_stack: %"PRIsVALUE, mesg); rb_str_resize(mesg, 0); append_bitstack_value(p->cmdarg_stack, mesg); - compile_error(p, "p->cmdarg_stack: %"PRIsVALUE, mesg); + compile_error(p, "cmdarg_stack: %"PRIsVALUE, mesg); if (p->debug_output == rb_stdout) p->debug_output = rb_stderr; p->debug = TRUE; -- cgit v1.2.3