mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
d3bce8cb5a
* ext/ripper/eventids2.c: ditto. * ext/ripper/lib/ripper.rb: ditto. * ext/ripper/depend (ripper.o): No action is needed. [ruby-dev:24260] * ext/ripper/depend: Borland make does not accept pipes in Makefile rules. [ruby-dev:24589] * ext/ripper/depend: separate rules for developpers. * ext/ripper/Makefile.dev: new file. * ext/ripper/MANIFEST: add Makefile.dev. * ext/ripper/tools/generate-eventids1.rb: read from file, not stdin. * ext/ripper/extconf.rb: clean ripper.E. * ext/ripper/tools/generate-ripper_rb.rb: #include ids1/ids2 function was lost. * ext/ripper/tools/generate-ripper_rb.rb: SCANNER_EVENTS wrongly contained parser events. * ext/ripper/lib/ripper.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
16 lines
270 B
Ruby
Executable file
16 lines
270 B
Ruby
Executable file
# $Id$
|
|
|
|
ids = File.readlines(ARGV[0]).map {|s| s.split[0] }
|
|
|
|
ids.each do |id|
|
|
puts "static ID ripper_id_#{id};"
|
|
end
|
|
|
|
puts
|
|
puts 'static void'
|
|
puts 'ripper_init_eventids1()'
|
|
puts '{'
|
|
ids.each do |id|
|
|
puts %Q[ ripper_id_#{id} = rb_intern("on__#{id}");]
|
|
end
|
|
puts '}'
|