Watson1978
10/24/2010 - 12:11 PM

Need the implementation on intern.h with MacRuby.

Need the implementation on intern.h with MacRuby.

# Usage:
#   $ cd src/MacRuby/
#   $ ruby methods.rb include/ruby/intern.h
file = ARGV[0]

puts "Implementation is necessary."
File.open(file) {|f|
  f.each_line do |line|
    if(line =~ /^([^ \t\/\{\}#]+) ([^(;]+)/)
      type   = $1
      method = $2

      ary = method.split(" ")
      if (ary.size > 1)
        type = "#{type} #{ary[0]}"
        method = ary[1]
      end

      unless(method =~ /{/)
        method.gsub!(/\*/, "")
        ret = `grep '#{method}' *`
        puts method if(ret.length == 0)
      end

    end
  end
}