[#586] irb aborts in 1.7.3 on Solaris — Jim Freeze <jim@...>
Hi:
6 messages
2002/12/06
[#598] irb Abort on Solaris Backtrace — Jim Freeze <jim@...>
Hi:
12 messages
2002/12/09
[#599] Re: irb Abort on Solaris Backtrace
— ts <decoux@...>
2002/12/09
>>>>> "J" == Jim Freeze <jim@freeze.org> writes:
[#600] Re: irb Abort on Solaris Backtrace
— Jim Freeze <jim@...>
2002/12/09
On Tuesday, 10 December 2002 at 1:44:43 +0900, ts wrote:
[#602] Re: irb Abort on Solaris Backtrace
— matz@... (Yukihiro Matsumoto)
2002/12/09
Hi,
[#603] Re: irb Abort on Solaris Backtrace
— Jim Freeze <jim@...>
2002/12/09
On Tuesday, 10 December 2002 at 3:24:46 +0900, Yukihiro Matsumoto wrote:
[#606] Re: irb Abort on Solaris Backtrace
— matz@... (Yukihiro Matsumoto)
2002/12/09
Hi,
[#609] Re: irb Abort on Solaris Backtrace
— Jim Freeze <jim@...>
2002/12/10
On Tuesday, 10 December 2002 at 7:59:33 +0900, Yukihiro Matsumoto wrote:
[#601] Re: irb Abort on Solaris Backtrace — "Garriss, Michael" <Michael.Garriss@...>
I tried: `ruby -r socket -e 0` and got no error. I would really like to
5 messages
2002/12/09
[#633] Error installing some extensions under non-default prefix — Jos Backus <jos@...>
Fyi: with today's CVS, when I run
4 messages
2002/12/13
[#636] doc/NEWS — Matt Armstrong <matt@...>
22 messages
2002/12/15
[#640] Re: [patch] doc/NEWS
— nobu.nokada@...
2002/12/15
Hi,
[#641] Re: [patch] doc/NEWS
— Matt Armstrong <matt@...>
2002/12/16
[#637] Re: [patch] doc/NEWS
— "Akinori MUSHA" <knu@...>
2002/12/15
At Mon, 16 Dec 2002 02:07:40 +0900,
[#639] Re: [patch] doc/NEWS
— matz@... (Yukihiro Matsumoto)
2002/12/15
Hi,
[#644] Re: [patch] doc/NEWS
— Tanaka Akira <akr@...17n.org>
2002/12/16
In article <1039993469.392945.14311.nullmailer@picachu.netlab.jp>,
[#667] Segfault in Ruby 1.7.x/1.8 Proc#to_s — Michael Granger <ged@...>
Hello,
8 messages
2002/12/29
Re: [patch] doc/NEWS
From:
nobu.nokada@...
Date:
2002-12-16 17:33:40 UTC
List:
ruby-core #647
Hi,
At Tue, 17 Dec 2002 00:39:54 +0900,
Matt Armstrong wrote:
> >> static VALUE
> >> -rb_reg_match_m(re, str)
> >> - VALUE re, str;
> >> +rb_reg_match_m(argc, argv, re)
> >
> > Do you like it? :-)
>
> Yes, though I was thinking that if Regexp#match has the index
> argument, maybe String#match should have it too.
String#match already hasn't it? Well, you're correct.
Index: string.c
===================================================================
RCS file: /cvs/ruby/src/ruby/string.c,v
retrieving revision 1.125
diff -u -2 -p -r1.125 string.c
--- string.c 10 Dec 2002 06:23:40 -0000 1.125
+++ string.c 16 Dec 2002 17:31:02 -0000
@@ -1000,8 +1000,15 @@ static VALUE get_pat _((VALUE, int));
static VALUE
-rb_str_match_m(str, re)
- VALUE str, re;
+rb_str_match_m(argc, argv, str)
+ int argc;
+ VALUE *argv;
+ VALUE str;
{
- return rb_funcall(get_pat(re, 0), rb_intern("match"), 1, str);
+ VALUE re;
+ if (argc < 1)
+ rb_raise(rb_eArgError, "wrong number of arguments(%d for 1)", argc);
+ re = argv[0];
+ argv[0] = str;
+ return rb_funcall2(get_pat(re, 0), rb_intern("match"), argc, argv);
}
@@ -3173,5 +3180,5 @@ Init_String()
rb_define_method(rb_cString, "=~", rb_str_match, 1);
rb_define_method(rb_cString, "~", rb_str_match2, 0);
- rb_define_method(rb_cString, "match", rb_str_match_m, 1);
+ rb_define_method(rb_cString, "match", rb_str_match_m, -1);
rb_define_method(rb_cString, "succ", rb_str_succ, 0);
rb_define_method(rb_cString, "succ!", rb_str_succ_bang, 0);
--
Nobu Nakada