[#5809] mod_ruby-0.0.7 — Shugo Maeda <shugo@...>

前田です。

63 messages 1999/03/01
[#5845] Re: mod_ruby-0.0.7 — Shugo Maeda <shugo@...> 1999/03/01

前田です。

[#5860] Re: mod_ruby-0.0.7 — moochan <moochan@...> 1999/03/02

moochan です.

[#5892] Re: mod_ruby-0.0.7 — Shugo Maeda <shugo@...> 1999/03/02

前田です。

[#5855] Re: mod_ruby-0.0.7 — Shugo Maeda <shugo@...> 1999/03/01

前田です。

[#5919] Re: mod_ruby-0.0.7 — Shugo Maeda <shugo@...> 1999/03/03

前田です。

[#5895] [REQ] 中置の def — EGUCHI Osamu <eguchi@...>

えぐち@エスアンドイーです。

18 messages 1999/03/02
[#5907] Re: [REQ] 中置の def — EGUCHI Osamu <eguchi@...> 1999/03/03

えぐち@エスアンドイー です。

[#5965] Re: Precision in Mathematica (Re: Bigfloat) — keiju@... (石塚圭樹 )

けいじゅ@日本ラショナルソフトウェアです.

28 messages 1999/03/04
[#5981] Re: Precision in Mathematica (Re: Bigfloat) — gotoken@... (GOTO Kentaro) 1999/03/04

ごとけん

[#6053] Re: Precision in Mathematica (Re: Bigfloat) — matz@... (Yukihiro Matsumoto) 1999/03/06

まつもと ゆきひろです

[#6150] Re: Precision in Mathematica (Re: Bigfloat) — matz@... (Yukihiro Matsumoto) 1999/03/09

まつもと ゆきひろです

[#6159] Re: Precision in Mathematica (Re: Bigfloat) — EGUCHI Osamu <eguchi@...> 1999/03/09

えぐち@エスアンドイー です。

[#6197] Re: Precision in Mathematica (Re: Bigfloat) — keiju@... (石塚圭樹 ) 1999/03/10

けいじゅ@日本ラショナルソフトウェアです.

[#6203] Re: Precision in Mathematica (Re: Bigfloat) — EGUCHI Osamu <eguchi@...> 1999/03/10

えぐち@エスアンドイー です。

[#6224] Re: Precision in Mathematica (Re: Bigfloat) — keiju@... (石塚圭樹 ) 1999/03/11

けいじゅ@日本ラショナルソフトウェアです.

[#6238] Re: Precision in Mathematica (Re: Bigfloat) — EGUCHI Osamu <eguchi@...> 1999/03/11

えぐち@エスアンドイー です。

[#6302] Re: Precision in Mathematica (Re: Bigfloat) — keiju@... (石塚圭樹 ) 1999/03/12

けいじゅ@日本ラショナルソフトウェアです.

[#6304] Re: Precision in Mathematica (Re: Bigfloat) — EGUCHI Osamu <eguchi@...> 1999/03/12

えぐち@エスアンドイー です。

[#5970] [REQ] variable of regex — keiju@... (Keiju ISHITSUKA)

けいじゅ@日本ラショナルソフトウェアです.

43 messages 1999/03/04

[#6090] Thread#kill — Shugo Maeda <shugo@...>

前田です。

24 messages 1999/03/08

[#6328] Re: Ruby 1.3.1-990315 — WATANABE Hirofumi <watanabe@...>

わたなべです.

41 messages 1999/03/15
[#6329] Re: Ruby 1.3.1-990315 — matz@... (Yukihiro Matsumoto) 1999/03/15

まつもと ゆきひろです

[#6331] Re: Ruby 1.3.1-990315 — Wakou Aoyama <wakou@...> 1999/03/15

青山です。

[#6338] Re: Ruby 1.3.1-990315 — matz@... (Yukihiro Matsumoto) 1999/03/16

まつもと ゆきひろです

[#6347] Re: Ruby 1.3.1-990315 — Wakou Aoyama <wakou@...> 1999/03/16

青山です。

[#6348] Re: Ruby 1.3.1-990315 — matz@... (Yukihiro Matsumoto) 1999/03/16

まつもと ゆきひろです

[#6350] Re: Ruby 1.3.1-990315 — Wakou Aoyama <wakou@...> 1999/03/16

青山です。

[#6353] Re: Ruby 1.3.1-990315 — matz@... (Yukihiro Matsumoto) 1999/03/16

まつもと ゆきひろです

[#6354] Re: Ruby 1.3.1-990315 — Wakou Aoyama <wakou@...> 1999/03/16

青山です。

[#6434] Time#+ — Koji Arai <JCA02266@...>

新井です。

19 messages 1999/03/22
[#6442] Re: Time#+ — matz@... (Yukihiro Matsumoto) 1999/03/22

まつもと ゆきひろです

[ruby-dev:6063] [PATCH] io_write

From: IKARASHI Akira <ikarashi@...>
Date: 1999-03-07 11:04:28 UTC
List: ruby-dev #6063
五十嵐です。

IOクラスを継承したクラスで定義した write メソッドを利用するように、
以下のパッチをあてて貰えないでしょうか?
Ruby 1.2.3へのパッチです。

getsなどではgetcを連続して呼ぶため、大きく速度が低下しましたが、
writeはそのような状況は少なく、速度低下はそれほどないと思います。

--- io.c.orig	Sat Mar  6 23:11:09 1999
+++ io.c	Sat Mar  6 23:22:38 1999
@@ -198,7 +198,7 @@
 io_addstr(io, str)
     VALUE io, str;
 {
-    io_write(io, str);
+    rb_funcall(io, id_write, 1, str);
     return io;
 }
 
@@ -1496,27 +1496,27 @@
     }
     for (i=0; i<argc; i++) {
 	if (!NIL_P(OFS) && i>0) {
-	    io_write(out, OFS);
+	    rb_funcall(out, id_write, 1, OFS);
 	}
 	switch (TYPE(argv[i])) {
 	  case T_NIL:
-	    io_write(out, str_new2("nil"));
+	    rb_funcall(out, id_write, 1, str_new2("nil"));
 	    break;
 	  case T_ARRAY:
 	    for (j=0; j<RARRAY(argv[i])->len; j++) {
 		if (!NIL_P(OFS) && j>0) {
-		    io_write(out, OFS);
+		    rb_funcall(out, id_write, 1, OFS);
 		}
-		io_write(out, RARRAY(argv[i])->ptr[j]);
+		rb_funcall(out, id_write, 1, RARRAY(argv[i])->ptr[j]);
 	    }
 	    break;
 	  default:
-	    io_write(out, argv[i]);
+	    rb_funcall(out, id_write, 1, argv[i]);
 	    break;
 	}
     }
     if (!NIL_P(ORS)) {
-	io_write(out, ORS);
+       rb_funcall(out, id_write, 1, ORS);
     }
 
     return Qnil;
@@ -1571,7 +1571,7 @@
 
     /* if no argument given, print newline. */
     if (argc == 0) {
-	io_write(out, RS_default);
+	rb_funcall(out, id_write, 1, RS_default);
 	return Qnil;
     }
     for (i=0; i<argc; i++) {
@@ -1589,9 +1589,9 @@
 	    break;
 	}
 	line = obj_as_string(line);
-	io_write(out, line);
+	rb_funcall(out, id_write, 1, line);
 	if (RSTRING(line)->ptr[RSTRING(line)->len-1] != '\n') {
-	    io_write(out, RS_default);
+	    rb_funcall(out, id_write, 1, RS_default);
 	}
     }
 
@@ -1611,8 +1611,8 @@
 rb_p(obj)			/* for debug print within C code */
     VALUE obj;
 {
-    io_write(rb_defout, rb_inspect(obj));
-    io_write(rb_defout, RS_default);
+    rb_funcall(rb_defout, id_write, 1, rb_inspect(obj));
+    rb_funcall(rb_defout, id_write, 1, RS_default);
 }
 
 static VALUE
@@ -1640,7 +1640,7 @@
 	out = rb_defout;
     }
 
-    io_write(out, self);
+    rb_funcall(out, id_write, 1, self);
 
     return Qnil;
 }

-- 
五十嵐 晃(ikarashi@itlb.te.noda.sut.ac.jp)

In This Thread

Prev Next