mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ripper: fix ripper.E
* ext/ripper/depend (ripper.E): add missing $(INCFLAGS). * ext/ripper/tools/strip.rb: insert an empty line for blank or line directive lines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f4afd05260
commit
7a0f0e258b
2 changed files with 4 additions and 5 deletions
|
@ -44,7 +44,7 @@ eventids2table.c: $(srcdir)/tools/generate.rb $(SRC2)
|
|||
preproc: ripper.E
|
||||
ripper.E: ripper.c
|
||||
$(ECHO) preprocessing ripper.c
|
||||
$(Q) $(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@
|
||||
$(Q) $(CC) -E $(INCFLAGS) $(CPPFLAGS) $< | $(RUBY) $(srcdir)/tools/strip.rb > $@
|
||||
|
||||
# AUTOGENERATED DEPENDENCIES START
|
||||
ripper.o: $(RUBY_EXTCONF_H)
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
# frozen_string_literal: false
|
||||
last_is_void = false
|
||||
ARGF.each do |line|
|
||||
if line.strip.empty?
|
||||
#puts() unless last_is_void
|
||||
case line
|
||||
when /\A\s*\z/, /\A\#/
|
||||
puts unless last_is_void
|
||||
last_is_void = true
|
||||
elsif /\A\#/ === line
|
||||
;
|
||||
else
|
||||
print line
|
||||
last_is_void = false
|
||||
|
|
Loading…
Add table
Reference in a new issue