diff options
Diffstat (limited to 'bcc32/mkexports.rb')
-rwxr-xr-x | bcc32/mkexports.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/bcc32/mkexports.rb b/bcc32/mkexports.rb deleted file mode 100755 index 888ab2e2a6..0000000000 --- a/bcc32/mkexports.rb +++ /dev/null @@ -1,26 +0,0 @@ -#!./miniruby -s - -$:.unshift(File.expand_path("../..", __FILE__)) -require 'win32/mkexports' - -class Exports::Bcc < Exports - def forwarding(internal, export) - internal[/\A_?/]+export - end - - def each_line(objs, &block) - objs.each do |obj| - opt = /\.(?:so|dll)\z/i =~ obj ? "-ee" : "-oiPUBDEF -oiPUBD32" - IO.foreach("|tdump -q #{opt} #{obj.tr('/', '\\')} < nul", &block) - end - end - - def each_export(objs) - objdump(objs) do |l| - next unless /(?:PUBDEF|PUBD32|EXPORT)/ =~ l - yield $1 if /'(.*?)'/ =~ l - end - yield "_strcasecmp", "_stricmp" - yield "_strncasecmp", "_strnicmp" - end -end |