[#5143] Win32API segfault in 1.8.3p1 — Nathaniel Talbott <ntalbott@...>
I'm on Windows XP, using VC7 to compile. I've previously gotten a good
Hi,
[#5151] COPY and INSTALL on Windows — Nathaniel Talbott <ntalbott@...>
1.8.3p1 has changed the defaults for the COPY and INSTALL Makefile
[#5152] 1.8.3 p1 segfault in array.c- bccwin32 - bcc5.5 (free) compiler bug — "daz" <dooby@...10.karoo.co.uk>
[#5160] Alternative for win32\ifchange.bat — "daz" <dooby@...10.karoo.co.uk>
[#5179] Cannot build HEAD on OS X 10.4.1 — Eric Hodel <drbrain@...7.net>
Somehow the rb_fd_init macro is conflicting with the definition of
Hi,
Hi,
[#5188] Re: IO#read — Yukihiro Matsumoto <matz@...>
Hi,
[#5190] Resolv and TTL — Eric Hodel <drbrain@...7.net>
I would like to retrieve the TTL values from Resolv, but they seem to
[#5206] Object#inspect() doesn't return; uses 100% cpu — Andrew Walrond <andrew@...>
Is this something I could have caused by overriding some method on the
[#5211] ruby 1.8 CVS do not work with --enable-pthread configure option — noreply@...
Bugs item #2038, was opened at 2005-06-16 13:57
[#5215] Hackers Guide Translation Request! — "Charles E. Thornton" <ruby-core@...>
I have recently discovered RUBY and want to understand it a deep level -
[#5219] Segmentation fault in timeout.rb — Michel Pastor <K@...>
Hi,
On Fri, 17 Jun 2005 05:03:18 +0900
Hi,
On Fri, 17 Jun 2005 11:51:07 +0900
Hi,
On Sat, 18 Jun 2005 10:28:53 +0900
Hi,
On Sun, 19 Jun 2005 23:05:56 +0900
[#5233] event_hook shows weirdness when invoked on mixed in methods — Ryan Davis <ryand-ruby@...>
The following attachment, when run, shows the following behavior:
[#5264] XMLRPC vulnerabilities? — Hugh Sasse <hgs@...>
I've just seen this (by RSS)
[#5267] RubyUnit Test Ordering — Jordan Gilliland <jordan@...>
I'm using ruby 1.8.2 (2004-12-25) [i686-linux] and I've noticed that the
[#5277] Macros in win32.h — james@...
win32.h defines a load of macros. This means any C or C++ program which embeds
[#5288] committing rdoc additions corrections to head? — Ryan Davis <ryand-ruby@...>
There is some discussion on ruby-doc about people documenting core
[#5296] Subversion — Shugo Maeda <shugo@...>
Hi,
Shugo Maeda wrote:
Curt Hibbs wrote:
On 6/30/05, Nikolai Weibull
Austin Ziegler wrote:
On 6/30/05, Nikolai Weibull
Austin Ziegler wrote:
On 6/30/05, mathew <meta@pobox.com> wrote:
Austin Ziegler wrote:
On 7/1/05, mathew <meta@pobox.com> wrote:
Austin Ziegler wrote:
On 7/1/05, Nikolai Weibull
Austin Ziegler wrote:
On 7/1/05, mathew <meta@pobox.com> wrote:
Austin Ziegler wrote:
On Thursday 30 June 2005 19:19, mathew wrote:
"Sean E. Russell" <ser@germane-software.com> writes:
On 30 Jun 2005, at 08:19, Shugo Maeda wrote:
Hi,
Re: event_hook shows weirdness when invoked on mixed in methods
On Jun 17, 2005, at 3:34 AM, nobu.nokada@softhome.net wrote:
> Hi,
>
> At Fri, 17 Jun 2005 19:12:43 +0900,
> Shugo Maeda wrote in [ruby-core:05235]:
>
>> --- add_event_hook_weirdness.rb.orig 2005-06-17
>> 19:10:25.055358488 +0900
>> +++ add_event_hook_weirdness.rb 2005-06-17 19:10:43.776512440 +0900
>> @@ -579,6 +579,14 @@
>> {
>> VALUE signature;
>>
>> + if (klass) {
>> + if (TYPE(klass) == T_ICLASS) {
>> + klass = RBASIC(klass)->klass;
>> + }
>> + else if (FL_TEST(klass, FL_SINGLETON)) {
>> + klass = self;
>> + }
>> + }
>> signature = rb_ary_new2(2);
>> rb_ary_store(signature, 0, klass);
>> rb_ary_store(signature, 1, ID2SYM(mid));
>>
>>
>> Maybe, EXEC_EVENT_HOOK() should do this.
>>
>
> Or rb_call() should rather?
Is this suitable and appropriate? (made against ruby_1_8, not HEAD)
*** eval.c 16 Jun 2005 22:41:10 -0700 1.616.2.101
--- eval.c 17 Jun 2005 08:54:38 -0700
***************
*** 5591,5596 ****
--- 5591,5608 ----
int itr;
static int tick;
TMP_PROTECT;
+ VALUE event_hook_klass = klass;
+
+ if (event_hook_klass) {
+ if (TYPE(event_hook_klass) == T_ICLASS) {
+ event_hook_klass = RBASIC(event_hook_klass)->klass;
+ }
+ else if (FL_TEST(event_hook_klass, FL_SINGLETON)) {
+ event_hook_klass = (VALUE)ruby_current_node;
+ }
+ }
+
+
switch (ruby_iter->iter) {
case ITER_PRE:
***************
*** 5630,5636 ****
int state;
EXEC_EVENT_HOOK(RUBY_EVENT_C_CALL, ruby_current_node,
! recv, id, klass);
PUSH_TAG(PROT_FUNC);
if ((state = EXEC_TAG()) == 0) {
result = call_cfunc(body->nd_cfnc, recv, len, argc,
argv);
--- 5642,5648 ----
int state;
EXEC_EVENT_HOOK(RUBY_EVENT_C_CALL, ruby_current_node,
! recv, id, event_hook_klass);
PUSH_TAG(PROT_FUNC);
if ((state = EXEC_TAG()) == 0) {
result = call_cfunc(body->nd_cfnc, recv, len, argc,
argv);
***************
*** 5638,5644 ****
POP_TAG();
ruby_current_node = ruby_frame->node;
EXEC_EVENT_HOOK(RUBY_EVENT_C_RETURN, ruby_current_node,
! recv, id, klass);
if (state) JUMP_TAG(state);
}
else {
--- 5650,5656 ----
POP_TAG();
ruby_current_node = ruby_frame->node;
EXEC_EVENT_HOOK(RUBY_EVENT_C_RETURN, ruby_current_node,
! recv, id, event_hook_klass);
if (state) JUMP_TAG(state);
}
else {
***************
*** 5768,5774 ****
}
if (event_hooks) {
! EXEC_EVENT_HOOK(RUBY_EVENT_CALL, b2, recv, id, klass);
}
result = rb_eval(recv, body);
}
--- 5780,5786 ----
}
if (event_hooks) {
! EXEC_EVENT_HOOK(RUBY_EVENT_CALL, b2, recv, id,
event_hook_klass);
}
result = rb_eval(recv, body);
}
***************
*** 5782,5788 ****
POP_SCOPE();
ruby_cref = saved_cref;
if (event_hooks) {
! EXEC_EVENT_HOOK(RUBY_EVENT_RETURN, body, recv, id, klass);
}
switch (state) {
case 0:
--- 5794,5800 ----
POP_SCOPE();
ruby_cref = saved_cref;
if (event_hooks) {
! EXEC_EVENT_HOOK(RUBY_EVENT_RETURN, body, recv, id,
event_hook_klass);
}
switch (state) {
case 0: