ruby-changes:47230
From: nobu <ko1@a...>
Date: Sun, 16 Jul 2017 23:32:51 +0900 (JST)
Subject: [ruby-changes:47230] nobu:r59345 (trunk): parse.y (numeric_literal_flush): fix typo
nobu 2017-07-16 23:32:41 +0900 (Sun, 16 Jul 2017) New Revision: 59345 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59345 Log: parse.y (numeric_literal_flush): fix typo Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 59344) +++ parse.y (revision 59345) @@ -4885,12 +4885,12 @@ ripper_yylval_id(ID x) https://github.com/ruby/ruby/blob/trunk/parse.y#L4885 #endif #ifndef RIPPER -#define numeric_literl_flush(p) (parser->tokp = (p)) +#define numeric_literal_flush(p) (parser->tokp = (p)) #define dispatch_scan_event(t) ((void)0) #define dispatch_delayed_token(t) ((void)0) #define has_delayed_token() (0) #else -#define numeric_literl_flush(p) ((void)0) +#define numeric_literal_flush(p) ((void)0) #define yylval_rval (*(RB_TYPE_P(yylval.val, T_NODE) ? &yylval.node->nd_rval : &yylval.val)) @@ -6532,7 +6532,7 @@ parser_number_literal_suffix(struct pars https://github.com/ruby/ruby/blob/trunk/parse.y#L6532 } if (!ISASCII(c) || ISALPHA(c) || c == '_') { lex_p = lastp; - numeric_literl_flush(lex_p); + numeric_literal_flush(lex_p); return 0; } pushback(c); @@ -6546,7 +6546,7 @@ parser_number_literal_suffix(struct pars https://github.com/ruby/ruby/blob/trunk/parse.y#L6546 } break; } - numeric_literl_flush(lex_p); + numeric_literal_flush(lex_p); return result; } @@ -7375,7 +7375,7 @@ parse_numeric(struct parser_params *pars https://github.com/ruby/ruby/blob/trunk/parse.y#L7375 if (nondigit) { char tmp[30]; trailing_uc: - numeric_literl_flush(lex_p - 1); + numeric_literal_flush(lex_p - 1); snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit); yyerror(tmp); } @@ -7397,7 +7397,7 @@ parse_numeric(struct parser_params *pars https://github.com/ruby/ruby/blob/trunk/parse.y#L7397 } v = DBL2NUM(d); } - numeric_literl_flush(lex_p); + numeric_literal_flush(lex_p); return set_number_literal(v, type, suffix); } suffix = number_literal_suffix(NUM_SUFFIX_ALL); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/