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

ruby-changes:49592

From: mame <ko1@a...>
Date: Tue, 9 Jan 2018 12:48:32 +0900 (JST)
Subject: [ruby-changes:49592] mame:r61707 (trunk): parse.y: Remove meaningless ifndef guards

mame	2018-01-09 12:48:26 +0900 (Tue, 09 Jan 2018)

  New Revision: 61707

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

  Log:
    parse.y: Remove meaningless ifndef guards
    
    Because the part of the code is already within `#ifndef RIPPER`.

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 61706)
+++ parse.y	(revision 61707)
@@ -5386,17 +5386,13 @@ yycompile0(VALUE arg) https://github.com/ruby/ruby/blob/trunk/parse.y#L5386
     }
 
     parser_prepare(parser);
-#ifndef RIPPER
 #define RUBY_DTRACE_PARSE_HOOK(name) \
     if (RUBY_DTRACE_PARSE_##name##_ENABLED()) { \
 	RUBY_DTRACE_PARSE_##name(ruby_sourcefile, ruby_sourceline); \
     }
     RUBY_DTRACE_PARSE_HOOK(BEGIN);
-#endif
     n = yyparse((void*)parser);
-#ifndef RIPPER
     RUBY_DTRACE_PARSE_HOOK(END);
-#endif
     ruby_debug_lines = 0;
     ruby_coverage = 0;
 

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

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