ruby-changes:46483
From: nobu <ko1@a...>
Date: Sun, 7 May 2017 23:03:57 +0900 (JST)
Subject: [ruby-changes:46483] nobu:r58602 (trunk): parse.y: export rb_parser_fatal for ripper
nobu 2017-05-07 23:03:52 +0900 (Sun, 07 May 2017) New Revision: 58602 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58602 Log: parse.y: export rb_parser_fatal for ripper Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 58601) +++ parse.y (revision 58602) @@ -566,6 +566,7 @@ VALUE rb_parser_reg_compile(struct parse https://github.com/ruby/ruby/blob/trunk/parse.y#L566 int rb_reg_fragment_setenc(struct parser_params*, VALUE, int); enum lex_state_e rb_parser_trace_lex_state(struct parser_params *, enum lex_state_e, enum lex_state_e, int); void rb_parser_show_bitstack(struct parser_params *, stack_type, const char *, int); +PRINTF_ARGS(void rb_parser_fatal(struct parser_params *parser, const char *fmt, ...), 2, 3); RUBY_SYMBOL_EXPORT_END static ID formal_argument_gen(struct parser_params*, ID); @@ -798,7 +799,6 @@ PRINTF_ARGS(static void parser_compile_e https://github.com/ruby/ruby/blob/trunk/parse.y#L799 # define compile_error parser_compile_error # define PARSER_ARG parser, #endif -PRINTF_ARGS(void rb_parser_fatal(struct parser_params *parser, const char *fmt, ...), 2, 3); /* Older versions of Yacc set YYMAXDEPTH to a very low value by default (150, for instance). This is too low for Ruby to parse some files, such as -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/