# clone latest rubyinstaller from github
$ git clone https://github.com/oneclick/rubyinstaller.git
$ cd rubyinstaller
# download patches into resources\patches\ruby193 directory
$ mkdir resources\patches\ruby193
$ cd resources\patches\ruby193
$ curl -o 1-falcon.patch https://raw.github.com/gist/4136373/falcon.diff
$ curl -O https://raw.github.com/gist/4199712/2-fix-file-expand_path-globing.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Makefile b/src/Makefile | |
--- a/src/Makefile | |
+++ b/src/Makefile | |
@@ -376,18 +376,22 @@ CClink = $(CC) | |
# Uncomment the next line to fail if one of the requested language interfaces | |
# cannot be configured. Without this Vim will be build anyway, without | |
# the failing interfaces. | |
#CONF_OPT_FAIL = --enable-fail-if-missing | |
# LUA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/ruby/util.h b/include/ruby/util.h | |
index 5be5f2e..a4ac1a7 100644 | |
--- a/include/ruby/util.h | |
+++ b/include/ruby/util.h | |
@@ -85,6 +85,21 @@ void ruby_each_words(const char *, void (*)(const char*, int, void*), void *); | |
RUBY_SYMBOL_EXPORT_END | |
+#if defined(__MINGW32__) && defined(_X86_) && !defined(__SSE2_MATH__) && defined(_MCW_PC) | |
+/* double-precision (53-bit) rounding precision is required for strtod and dtoa. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r e85071312475 src/if_ruby.c | |
--- a/src/if_ruby.c Tue May 07 05:18:20 2013 +0200 | |
+++ b/src/if_ruby.c Fri May 10 12:09:19 2013 +0900 | |
@@ -144,6 +144,7 @@ | |
#endif | |
static int ruby_initialized = 0; | |
+static void *ruby_stack_start; | |
static VALUE objtbl; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/thread_pthread.c b/thread_pthread.c | |
index eb98024..30ca276 100644 | |
--- a/thread_pthread.c | |
+++ b/thread_pthread.c | |
@@ -45,6 +45,7 @@ static void native_cond_wait(rb_thread_cond_t *cond, pthread_mutex_t *mutex); | |
static void native_cond_initialize(rb_thread_cond_t *cond, int flags); | |
static void native_cond_destroy(rb_thread_cond_t *cond); | |
static void rb_thread_wakeup_timer_thread_low(void); | |
+static int native_thread_init_stack(rb_thread_t *th); | |
static pthread_t timer_thread_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) disas set_optimize_info_from_tree | |
(snip) | |
0x6d2e8d67 <+1207>: pop %ebp | |
0x6d2e8d68 <+1208>: ret | |
0x6d2e8d69 <+1209>: lea 0x0(%esi,%eiz,1),%esi | |
0x6d2e8d70 <+1216>: movl $0xffffffff,0x2c(%ebx) | |
0x6d2e8d77 <+1223>: jmp 0x6d2e8afb <onig_compile+587> | |
0x6d2e8d7c <+1228>: mov $0xfffffffb,%eax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/dl/win32/lib/Win32API.rb b/ext/dl/win32/lib/Win32API.rb | |
index f18cec5..256d596 100644 | |
--- a/ext/dl/win32/lib/Win32API.rb | |
+++ b/ext/dl/win32/lib/Win32API.rb | |
@@ -7,6 +7,7 @@ require 'dl' | |
class Win32API | |
DLL = {} | |
TYPEMAP = {"0" => DL::TYPE_VOID, "S" => DL::TYPE_VOIDP, "I" => DL::TYPE_LONG} | |
+ POINTER_TYPE = DL::SIZEOF_VOIDP == DL::SIZEOF_LONG_LONG ? 'q*' : 'l!*' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "benchmark" | |
in_dir = File.expand_path('input/empty_files', File.dirname(__FILE__)) | |
200.times do |i| | |
$LOAD_PATH.push File.expand_path(i.to_s) | |
end | |
$LOAD_PATH.push in_dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ChangeLog b/ChangeLog | |
index 7f90628..49391a4 100644 | |
--- a/ChangeLog | |
+++ b/ChangeLog | |
@@ -1,3 +1,112 @@ | |
+Thu Aug 30 07:45:12 2012 Luis Lavena <[email protected]> | |
+ | |
+ * test/ruby/test_file_exhaustive.rb: fix test introduced in r36811 for | |
+ posix environments where HOME is not defined. [ruby-core:47322] | |
+ |