[#4745] Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...>

Having taken upon me the task to provide a Windows build for

24 messages 2005/04/20
[#4746] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Austin Ziegler <halostatue@...> 2005/04/20

On 4/20/05, Erik Huelsmann <ehuels@gmail.com> wrote:

[#4747] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/20

Hi Austin,

[#4762] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — nobu.nokada@... 2005/04/24

Hi,

[#4783] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/25

On 4/24/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:

[#4787] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — nobu.nokada@... 2005/04/25

Hi,

[#4794] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/25

> > > Ruby is just using AC_TYPE_UID_T. So, using typedef for them,

[#4751] Illegal regexp causes segfault — Andrew Walrond <andrew@...>

irb(main):058:0> a = /\[([^]]*)\]/

13 messages 2005/04/22

Re: [PATCH] Trivial speedup in Array#zip

From: nobu.nokada@...
Date: 2005-04-19 22:02:24 UTC
List: ruby-core #4739
Hi,

At Tue, 19 Apr 2005 08:38:08 +0900,
Mauricio Fern疣dez wrote in [ruby-core:04736]:
> --- array.c.orig        2005-04-18 00:11:33.000000000 +0200
> +++ array.c     2005-04-18 00:22:18.000000000 +0200
> @@ -2074,12 +2074,12 @@
>         argv[i] = to_ary(argv[i]);
>      }
>      if (rb_block_given_p()) {
> +        VALUE tmp = rb_ary_new2(argc+1);
> +        RARRAY(tmp)->len = argc + 1;
>         for (i=0; i<RARRAY(ary)->len; i++) {
> -           VALUE tmp = rb_ary_new2(argc+1);
> -
> -           rb_ary_push(tmp, rb_ary_elt(ary, i));
> +            RARRAY(tmp)->ptr[0] = RARRAY(ary)->ptr[i];
>             for (j=0; j<argc; j++) {
> -               rb_ary_push(tmp, rb_ary_elt(argv[j], i));
> +                RARRAY(tmp)->ptr[1+j] = rb_ary_elt(argv[j], i);
>             }
>             rb_yield(tmp);
>         }

`tmp' can be modified or stored anywhere while yielding, so it
should not be reused.  You can't assume that the size is
constant, at least.

# and the indent doesn't seem consistent.

-- 
Nobu Nakada


In This Thread