1 # -*- ruby -*-
2
3 require 'mkmf'
4 $:.unshift File.dirname(__FILE__)
5 require 'type'
6 require 'dlconfig'
7
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
13
14 DLTYPE.keys.sort.each{|t|
15 for n in 0..(MAX_CALLBACK - 1)
16 print(mktable(t, n, 15), "\n")
17 end
18 }