diff --git a/ChangeLog b/ChangeLog index 09cfef7226c1e0..c0b6c0bbe7acaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Sep 25 09:30:36 2012 NAKAMURA Usaku + + * win32/mkexports.rb: should not export DllMain(). + reported by luis at [ruby-core:46743] [Bug #6790], solved by + Heesob Park, and confirmed by nobu. + Mon Sep 24 16:34:07 2012 Hiroshi Shirosaki * include/ruby/win32.h (rb_w32_pow): add new function. diff --git a/version.h b/version.h index 2082c6143bec71..baf1fc3e20fcd5 100644 --- a/version.h +++ b/version.h @@ -1,10 +1,10 @@ #define RUBY_VERSION "1.9.3" -#define RUBY_PATCHLEVEL 276 +#define RUBY_PATCHLEVEL 277 -#define RUBY_RELEASE_DATE "2012-09-24" +#define RUBY_RELEASE_DATE "2012-09-25" #define RUBY_RELEASE_YEAR 2012 #define RUBY_RELEASE_MONTH 9 -#define RUBY_RELEASE_DAY 24 +#define RUBY_RELEASE_DAY 25 #include "ruby/version.h" diff --git a/win32/mkexports.rb b/win32/mkexports.rb index 9b450519ced2af..22c00192947bc8 100755 --- a/win32/mkexports.rb +++ b/win32/mkexports.rb @@ -112,7 +112,7 @@ def each_export(objs) is_data = !$1 if noprefix or /^[@_]/ =~ l next if /(?!^)@.*@/ =~ l || /@[[:xdigit:]]{8,16}$/ =~ l || - /^_(?:Init_|.*_threadptr_|DllMain@)/ =~ l + /^_?(?:Init_|.*_threadptr_|DllMain\b)/ =~ l l.sub!(/^[@_]/, '') if /@\d+$/ !~ l elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1') next @@ -146,7 +146,7 @@ def each_line(objs, &block) def each_export(objs) symprefix = RbConfig::CONFIG["SYMBOL_PREFIX"] symprefix.strip! if symprefix - re = /\s(?:(T)|[[:upper:]])\s#{symprefix}((?!Init_|.*_threadptr_|DllMain@).*)$/ + re = /\s(?:(T)|[[:upper:]])\s#{symprefix}((?!Init_|.*_threadptr_|DllMain\b).*)$/ objdump(objs) do |l| next if /@.*@/ =~ l yield $2, !$1 if re =~ l