Update to RDoc 2.1.0 r112
[rbx.git] / stdlib / ext / dl / mkcbtable.rb
blob165c4bdc88993ec8b2caac0b0947f496023b3d29
1 # -*- ruby -*-
3 require 'mkmf'
4 $:.unshift File.dirname(__FILE__)
5 require 'type'
6 require 'dlconfig'
8 def mktable(rettype, fnum, argc)
9   code =
10     "rb_dl_callback_table[#{rettype}][#{fnum}] = &rb_dl_callback_func_#{rettype.to_s}_#{fnum};"
11   return code
12 end
14 DLTYPE.keys.sort.each{|t|
15   for n in 0..(MAX_CALLBACK - 1)
16     print(mktable(t, n, 15), "\n")
17   end