3 $:.unshift(File.expand_path("../..", __FILE__))
4 require 'win32/mkexports'
6 class Exports::Bcc < Exports
7 def forwarding(internal, export)
8 internal[/\A_?/]+export
11 def each_line(objs, &block)
13 opt = /\.(?:so|dll)\z/i =~ obj ? "-ee" : "-oiPUBDEF -oiPUBD32"
14 IO.foreach("|tdump -q #{opt} #{obj.tr('/', '\\')} < nul", &block)
20 next unless /(?:PUBDEF|PUBD32|EXPORT)/ =~ l
21 yield $1 if /'(.*?)'/ =~ l
23 yield "_strcasecmp", "_stricmp"
24 yield "_strncasecmp", "_strnicmp"