[#6115] Ruby 1.8.3: YAML.dump/load cannot handle Bignum — akira yamada / やまだあきら <akira@...>
[#6119] Packaging BOF on Friday the 14th? — Austin Ziegler <halostatue@...>
(Crossposted to both ruby-core and rubygems-developers for the benefit
[#6135] ObjectSpace.each_object, but not Symbols? — TRANS <transfire@...>
I added some state to Symbol:
Hi,
Hi,
[#6143] — Christophe Poucet <christophe.poucet@...>
Hello,
Hi,
On Wed, 5 Oct 2005 nobu.nokada@softhome.net wrote:
Hi,
On Wed, 5 Oct 2005, nobuyoshi nakada wrote:
[#6161] On NullClass or FalseClass#method_missing — TRANS <transfire@...>
Hi--
[#6162] Concerning shared flag — Christophe Poucet <christophe.poucet@...>
Hello,
>>>>> "C" == Christophe Poucet <christophe.poucet@gmail.com> writes:
Hello,
>>>>> "C" == Christophe Poucet <christophe.poucet@gmail.com> writes:
[#6188] yield and call not identical? — "David A. Black" <dblack@...>
Hi --
[#6199] Kernel rdoc HTML file not being created when rdoc is run on 1.8.3 — James Britt <ruby@...>
When 1.8.3 came out, I grabbed the source and ran rdoc on it. After
On Sun, Oct 09, 2005 at 12:41:02AM +0900, James Britt wrote:
Doug Kearns wrote:
H.Yamamoto wrote:
On 10/19/05, why the lucky stiff <ruby-core@whytheluckystiff.net> wrote:
[#6213] extend and super -- I cannot understand why this behavior — TRANS <transfire@...>
module Q
On Tue, 11 Oct 2005, TRANS wrote:
On 10/10/05, Mathieu Bouchard <matju@artengine.ca> wrote:
On Tue, 11 Oct 2005, TRANS wrote:
On 10/10/05, Mathieu Bouchard <matju@artengine.ca> wrote:
[#6235] Keyword arguments in Rite — Daniel Schierbeck <daniel.schierbeck@...>
Hello everybody! I'm new to this list, so please don't flame me if what
Daniel Schierbeck wrote:
[#6251] RubyGems, upstream releases and idempotence of packaging — Mauricio Fern疣dez <mfp@...>
[sorry for the very late reply; I left this message in +postponed and forgot
On 10/13/05, Mauricio Fern疣dez <mfp@acm.org> wrote:
On Thu, Oct 13, 2005 at 08:55:41PM +0900, Gavin Sinclair wrote:
[#6262] Re: A concrete solution to RubyGems' repackageability problems — Gavin Sinclair <gsinclair@...>
On 10/13/05, Mauricio Fern疣dez <mfp@acm.org> wrote:
[#6282] Wilderness: Need Code to invoke ELTS_SHARED response — "Charles E. Thornton" <ruby-core@...>
Testing the My Object Dump and I am trying to cause creation
On Fri, Oct 14, 2005 at 05:04:59PM +0900, Charles E. Thornton wrote:
Mauricio Fern疣dez wrote:
On Oct 14, 2005, at 12:43 PM, Charles E. Thornton wrote:
On Sun, Oct 16, 2005 at 01:34:13PM +0900, Charles Mills wrote:
Mauricio Fern疣dez wrote:
[#6284] Ruby 1.8.3, Gems, Rake and Syck — TRANS <transfire@...>
George Moschovitis tried to send me a gem to try out and it would not install.
On 10/14/05, Ryan Davis <ryand-ruby@zenspider.com> wrote:
[#6315] Integer#** weirdness — Peter Vanbroekhoven <calamitates@...>
Hello,
[#6338] Help/Ruby 1.8.3/HP-UX/[BUG] Bus Error — tad.bochan@...
Hi ... need help ...
[#6358] Handle prompts with newlines in irb auto-indentation mode — noreply@...
Bugs item #2705, was opened at 2005-10-23 23:07
Hi,
[#6362] CGI read_multipart implementaion can create Tempfiles for files less than 10KB — noreply@...
Bugs item #2708, was opened at 2005-10-24 15:44
On Mon, 24 Oct 2005 noreply@rubyforge.org wrote:
[#6364] lib/rational.rb documentation — Gavin Sinclair <gsinclair@...>
Hi,
[#6365] Time for built-in Rational and Complex classes? — Gavin Sinclair <gsinclair@...>
There has been some support for, but no comment on, RCR #260 ("Make
On Mon, 24 Oct 2005, Gavin Sinclair wrote:
On Oct 24, 2005, at 7:14 AM, Ara.T.Howard wrote:
On Wed, 26 Oct 2005, Charles Mills wrote:
On 10/26/05, Mathieu Bouchard <matju@artengine.ca> wrote:
On Thu, 27 Oct 2005, Charles Mills wrote:
On 10/27/05, Mathieu Bouchard <matju@artengine.ca> wrote:
[#6373] instance_eval/instance_exec discussion — Daniel Amelang <daniel.amelang@...>
Introduction:
Hi,
[#6376] Crash in Tk demo of Ruby 1.9.0 CVS — Jean-Claude Arbaut <jcarbaut@...>
I tried the demos in /ruby/ext/tk/sample/demos-en/widget
[#6389] [PATCH] 1.8.3 ruby.c doesn't compile on OS X due to missing char **environ — noreply@...
Bugs item #2715, was opened at 2005-10-24 23:01
Hi,
[#6391] Threading performance — Wink Saville <wink@...>
Hello all,
[#6396] Nested Exception — Yohanes Santoso <ysantoso-rubycore@...>
Would you accept a patch to provide nested Exception?
[#6402] Pathname.exists?() — James Edward Gray II <james@...>
Pathname supports the legacy exist?() method, but not the current
[#6405] Re: [PATCH] Pathname.exists?() — "Berger, Daniel" <Daniel.Berger@...>
On 10/25/05, Berger, Daniel <Daniel.Berger@qwest.com> wrote:
On 10/26/05, TRANS <transfire@gmail.com> wrote:
On 10/25/05, Gavin Sinclair <gsinclair@gmail.com> wrote:
On Oct 25, 2005, at 11:28 AM, TRANS wrote:
On Wed, 26 Oct 2005, Eric Hodel wrote:
On 10/26/05, Ara.T.Howard <Ara.T.Howard@noaa.gov> wrote:
On 10/25/05, Gavin Sinclair <gsinclair@gmail.com> wrote:
[#6419] Refactoring eval.c into eval.c, thread.c, thread.h & eval.h — Wink Saville <wink@...>
Hello,
[#6427] Re: Wilderness: I am working of a TAGS Extension - We Have One? — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
[#6430] PStore Documentation — James Edward Gray II <james@...>
The attached patch completely documents the PStore library. Please
James Edward Gray II wrote:
[#6442] Wilderness: I Have formatted README.EXT into an HTML Document — "Charles E. Thornton" <ruby-core@...>
I have taken README.EXT (English Version Only) and have reformatted
Hi,
Charles E. Thornton wrote:
[#6455] Wilderness: OK - Let us Try to sending it (not as a reply) — "Charles E. Thornton" <ruby-core@...>
I am sorry - I don't understand this problem
[#6469] csv.rb a start on refactoring. — Hugh Sasse <hgs@...>
For a database application I found using CSV to be rather slow.
On Oct 28, 2005, at 8:53 AM, Ara.T.Howard wrote:
On Fri, 28 Oct 2005, James Edward Gray II wrote:
On Oct 28, 2005, at 9:58 AM, Ara.T.Howard wrote:
On Sat, 29 Oct 2005, James Edward Gray II wrote:
On Oct 28, 2005, at 8:25 PM, Ara.T.Howard wrote:
On Sat, 29 Oct 2005, James Edward Gray II wrote:
On Oct 28, 2005, at 8:43 PM, Ara.T.Howard wrote:
On Oct 28, 2005, at 8:43 PM, Ara.T.Howard wrote:
On Oct 28, 2005, at 10:06 PM, James Edward Gray II wrote:
On Sun, 30 Oct 2005, James Edward Gray II wrote:
On Oct 29, 2005, at 12:11 PM, Ara.T.Howard wrote:
On Mon, 31 Oct 2005, James Edward Gray II wrote:
I've decided to create a FasterCSV library, based on the code we
On Mon, 31 Oct 2005, James Edward Gray II wrote:
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 31 Oct 2005, NAKAMURA, Hiroshi wrote:
-----BEGIN PGP SIGNED MESSAGE-----
On Tue, 1 Nov 2005, NAKAMURA, Hiroshi wrote:
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, 2 Nov 2005, NAKAMURA, Hiroshi wrote:
-----BEGIN PGP SIGNED MESSAGE-----
On Oct 29, 2005, at 12:11 PM, Ara.T.Howard wrote:
On Tue, 1 Nov 2005, James Edward Gray II wrote:
On Oct 31, 2005, at 11:59 AM, Ara.T.Howard wrote:
[#6508] characters (and small strings) in ruby 2.0 — Eric Mahurin <eric.mahurin@...>
In ruby 2.0, the current plan is to for a character to be represented as a
Re: patch.tgz
Hello nobu,
Great suggestion. This lead to a few compile errors on the patch that I
proposed but they were minimal. Basically VALUEFUNC needs to be removed from
the functions passed to rb_exec_recursive. I think a similar system could be
used for rb_define_method as it would standardize the interface. The only
downside is that no longer specialized functions (with e.g. only 2
parameterscan be made if for instance your method takes 1 argument
(+self).
Regards,
Christophe
On 10/5/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
>
> Hi,
>
> At Wed, 5 Oct 2005 02:26:33 +0900,
> Christophe Poucet wrote in [ruby-core:06143]:
> > [0 patch.tgz <application/x-gzip (base64)>]
>
> I don't think casting function pointers is safe. This patch
> would fix some sort of warnings. And I found qsort in util.h
> is incompatible to ANSI C.
>
>
> Index: array.c
> ===================================================================
> RCS file: /cvs/ruby/src/ruby/array.c,v
> retrieving revision 1.180
> diff -U2 -p -r1.180 array.c
> --- array.c 24 Sep 2005 00:17:40 -0000 1.180
> +++ array.c 4 Oct 2005 22:55:11 -0000
> @@ -1246,6 +1246,7 @@ extern VALUE rb_output_fs;
>
> static VALUE
> -recursive_join(VALUE ary, VALUE *arg, int recur)
> +recursive_join(VALUE ary, VALUE argp, int recur)
> {
> + VALUE *arg = (VALUE *)argp;
> if (recur) {
> return rb_str_new2("[...]");
> @@ -1474,19 +1475,20 @@ ary_sort_check(struct ary_sort_data *dat
>
> static int
> -sort_1(VALUE *a, VALUE *b, struct ary_sort_data *data)
> +sort_1(const void *ap, const void *bp, void *data)
> {
> - VALUE retval = rb_yield_values(2, *a, *b);
> + VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp;
> + VALUE retval = rb_yield_values(2, a, b);
> int n;
>
> - n = rb_cmpint(retval, *a, *b);
> - ary_sort_check(data);
> + n = rb_cmpint(retval, a, b);
> + ary_sort_check((struct ary_sort_data *)data);
> return n;
> }
>
> static int
> -sort_2(VALUE *ap, VALUE *bp, struct ary_sort_data *data)
> +sort_2(const void *ap, const void *bp, void *data)
> {
> VALUE retval;
> - VALUE a = *ap, b = *bp;
> + VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp;
> int n;
>
> @@ -1502,5 +1504,5 @@ sort_2(VALUE *ap, VALUE *bp, struct ary_
> retval = rb_funcall(a, id_cmp, 1, b);
> n = rb_cmpint(retval, a, b);
> - ary_sort_check(data);
> + ary_sort_check((struct ary_sort_data *)data);
>
> return n;
> @@ -1514,6 +1516,6 @@ sort_internal(VALUE ary)
> data.ary = ary;
> data.ptr = RARRAY(ary)->ptr; data.len = RARRAY(ary)->len;
> - qsort(RARRAY(ary)->ptr, RARRAY(ary)->len, sizeof(VALUE),
> - rb_block_given_p()?sort_1:sort_2, &data);
> + ruby_qsort(RARRAY(ary)->ptr, RARRAY(ary)->len, sizeof(VALUE),
> + rb_block_given_p()?sort_1:sort_2, &data);
> return ary;
> }
> Index: enum.c
> ===================================================================
> RCS file: /cvs/ruby/src/ruby/enum.c,v
> retrieving revision 1.63
> diff -U2 -p -r1.63 enum.c
> --- enum.c 12 Sep 2005 10:44:19 -0000 1.63
> +++ enum.c 4 Oct 2005 22:57:15 -0000
> @@ -434,8 +434,8 @@ sort_by_i(VALUE i, VALUE ary)
>
> static int
> -sort_by_cmp(NODE **aa, NODE **bb)
> +sort_by_cmp(const void *ap, const void *bp, void *data)
> {
> - VALUE a = aa[0]->u1.value;
> - VALUE b = bb[0]->u1.value;
> + VALUE a = (*(NODE *const *)ap)->u1.value;
> + VALUE b = (*(NODE *const *)bp)->u1.value;
>
> return rb_cmpint(rb_funcall(a, id_cmp, 1, b), a, b);
> @@ -528,5 +528,5 @@ enum_sort_by(VALUE obj)
> rb_iterate(rb_each, obj, sort_by_i, ary);
> if (RARRAY(ary)->len > 1) {
> - qsort(RARRAY(ary)->ptr, RARRAY(ary)->len, sizeof(VALUE), sort_by_cmp,
> 0);
> + ruby_qsort(RARRAY(ary)->ptr, RARRAY(ary)->len, sizeof(VALUE),
> sort_by_cmp, 0);
> }
> if (RBASIC(ary)->klass) {
> Index: eval.c
> ===================================================================
> RCS file: /cvs/ruby/src/ruby/eval.c,v
> retrieving revision 1.834
> diff -U2 -p -r1.834 eval.c
> --- eval.c 28 Sep 2005 22:22:31 -0000 1.834
> +++ eval.c 4 Oct 2005 23:06:41 -0000
> @@ -12946,7 +12946,5 @@ recursive_pop(void)
>
> VALUE
> -rb_exec_recursive(VALUE (*func) (/* ??? */), VALUE obj, VALUE arg)
> - /* VALUE obj, VALUE arg, int flag */
> -
> +rb_exec_recursive(VALUE (*func)(VALUE, VALUE, int), VALUE obj, VALUE arg)
> {
> if (recursive_check(obj)) {
> Index: file.c
> ===================================================================
> RCS file: /cvs/ruby/src/ruby/file.c,v
> retrieving revision 1.212
> diff -U2 -p -r1.212 file.c
> --- file.c 28 Sep 2005 14:40:25 -0000 1.212
> +++ file.c 4 Oct 2005 22:59:26 -0000
> @@ -2696,6 +2696,7 @@ static VALUE rb_file_join(VALUE ary, VAL
>
> static VALUE
> -file_inspect_join(VALUE ary, VALUE *arg, int recur)
> +file_inspect_join(VALUE ary, VALUE argp, int recur)
> {
> + VALUE *arg = (VALUE *)arg;
> if (recur) return rb_str_new2("[...]");
> return rb_file_join(arg[0], arg[1]);
> Index: intern.h
> ===================================================================
> RCS file: /cvs/ruby/src/ruby/intern.h,v
> retrieving revision 1.184
> diff -U2 -p -r1.184 intern.h
> --- intern.h 1 Oct 2005 04:11:43 -0000 1.184
> +++ intern.h 4 Oct 2005 23:04:05 -0000
> @@ -282,5 +282,5 @@ VALUE rb_thread_local_aref(VALUE, ID);
> VALUE rb_thread_local_aset(VALUE, ID, VALUE);
> void rb_thread_atfork(void);
> -VALUE rb_exec_recursive(VALUE(*)(ANYARGS),VALUE,VALUE);
> +VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
> /* file.c */
> int eaccess(const char*, int);
> Index: util.c
> ===================================================================
> RCS file: /cvs/ruby/src/ruby/util.c,v
> retrieving revision 1.47
> diff -U2 -p -r1.47 util.c
> --- util.c 14 Sep 2005 06:32:32 -0000 1.47
> +++ util.c 4 Oct 2005 22:50:40 -0000
> @@ -471,10 +471,7 @@ typedef struct { char *LL, *RR; } stack_
> ((*cmp)(b,c,d)>0 ? b : ((*cmp)(a,c,d)<0 ? a : c)))
>
> -void ruby_qsort (base, nel, size, cmp, d)
> - void* base;
> - const int nel;
> - const int size;
> - int (*cmp)();
> - void *d;
> +void
> +ruby_qsort(void* base, const int nel, const int size,
> + int (*cmp)(const void*, const void*, void*), void *d)
> {
> register char *l, *r, *m; /* l,r:left,right group m:median point */
> Index: util.h
> ===================================================================
> RCS file: /cvs/ruby/src/ruby/util.h,v
> retrieving revision 1.17
> diff -U2 -p -r1.17 util.h
> --- util.h 14 Sep 2005 06:32:32 -0000 1.17
> +++ util.h 4 Oct 2005 22:48:28 -0000
> @@ -44,6 +44,5 @@ void ruby_add_suffix(VALUE str, char *su
> #endif
>
> -void ruby_qsort(void*, const int, const int, int (*)(), void*);
> -#define qsort(b,n,s,c,d) ruby_qsort(b,n,s,c,d)
> +void ruby_qsort(void*, const int, const int, int (*)(const void*,const
> void*,void*), void*);
>
> void ruby_setenv(const char*, const char*);
>
>
> --
> Nobu Nakada
>
>