[前][次][番号順一覧][スレッド一覧]

ruby-changes:55285

From: nobu <ko1@a...>
Date: Wed, 10 Apr 2019 14:12:39 +0900 (JST)
Subject: [ruby-changes:55285] nobu:r67492 (trunk): parse.y: fix fatal messages

nobu	2019-04-10 14:12:33 +0900 (Wed, 10 Apr 2019)

  New Revision: 67492

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67492

  Log:
    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.

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 67491)
+++ parse.y	(revision 67492)
@@ -9307,7 +9307,7 @@ void https://github.com/ruby/ruby/blob/trunk/parse.y#L9307
 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, https://github.com/ruby/ruby/blob/trunk/parse.y#L9317
 
     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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]