[#536] SEVG in bignum.c:505... — Sean Chittenden <sean@...>
$ ruby -e 'p [].to_s.strip.to_i'
5 messages
2002/10/13
[#537] darwin shared library patch — Eric Melville <eric@...>
In Darwin, the preferred way to build shared libraries is with two level
9 messages
2002/10/13
[#539] Re: darwin shared library patch
— "Akinori MUSHA" <knu@...>
2002/10/13
Hi,
[#544] Re: darwin shared library patch
— Eric Melville <eric@...>
2002/10/16
> The patch seems to make ENV[]= coredump.
[#546] Re: darwin shared library patch
— "Akinori MUSHA" <knu@...>
2002/10/16
At Thu, 17 Oct 2002 01:41:49 +0900,
[#541] Patch for MacOS X dln.c — Luc B駘anger <belanglu@...>
I have a patch for the dynamic linker in MacOS X, which permit to load
7 messages
2002/10/13
Re: Suprise
From:
Torsten Rer <torsten.rueger@...>
Date:
2002-10-03 06:38:02 UTC
List:
ruby-core #521
Further investigating . . . I take it all back.
The suprise is on shade side which swallows first element in array (!)
(I guess in standard C that's the command)
array_push works as expected and so does str_append.
Thanks and sorry to bother
Torsten
> Moi,
>
> first time I'm suprised with ruby. It doesn't work. But surely I'm
> doing something wrong.
>
> Problem seems to be: rb_ary_push overwrites first element.
>
> So I have code like: (argv is ARGV from ruby)
>
> VALUE file_param = rb_str_new2("--disk_filename=");
> file_param = rb_str_append( file_param , filename );
> rb_ary_push( argv, file_param );
> for( i = 0 ; i < RARRAY(argv)->len ; i++ ){
> av[i] = STR2CSTR(RARRAY(argv)->ptr[i] );
> }
> init_shades(RARRAY(argv)->len , av );
>
> but the init_shades only gets the filename string if I pass the
> command line an argument (which is then overwritten).
> When I pass no argument, nothing gets through.
>
> Suprise. hm.
>
> Answers ?
>
> Thanks
>
> Torsten
>