[#19261] lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@...

なかだです。

29 messages 2003/01/01
[#19360] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "K.Kosako" <kosako@...> 2003/01/15

nobu.nakada@nifty.ne.jpさんの

[#19361] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/15

なひです。

[#19364] Re: lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@... 2003/01/17

なかだです。

[#19366] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/17

なひです。

[#19299] [BUG] errno == 0 — Kazuhiro Yoshida <moriq@...>

もりきゅうです。win32だけかもしれません。

22 messages 2003/01/04
[#19301] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19302] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19303] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19304] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19306] Re: [BUG] errno == 0 — nobu.nakada@... 2003/01/05

なかだです。

[ruby-dev:19358] Re: [PATCH] .rb/.so with same feature name

From: WATANABE Hirofumi <eban@...>
Date: 2003-01-14 09:15:49 UTC
List: ruby-dev #19358
わたなべです。

Yukihiro Matsumoto <matz@ruby-lang.org> writes:

> 1.8にも入ってませんが、なんとなく問題があって取り込まなかっ
> たような気がします。今当ててみたら ./lib/ftools が読み込めな
> いエラーになってビルドできませんし。

やまださんの情報を基にマージするとこうなります。
make testも通ります。

Index: eval.c
===================================================================
RCS file: /src/ruby/eval.c,v
retrieving revision 1.381
diff -u -1 -p -r1.381 eval.c
--- eval.c	9 Jan 2003 07:33:27 -0000	1.381
+++ eval.c	14 Jan 2003 09:13:11 -0000
@@ -5601,7 +5601,7 @@ rb_f_require(obj, fname)
 	    }
+	    goto not_found;
 	}
 	else if (strcmp(".so", ext) == 0 || strcmp(".o", ext) == 0) {
-	    fname = rb_str_new(RSTRING(fname)->ptr, ext-RSTRING(fname)->ptr);
+	    tmp = rb_str_new(RSTRING(fname)->ptr, ext-RSTRING(fname)->ptr);
 #ifdef DLEXT2
-	    tmp = fname;
 	    if (rb_find_file_ext(&tmp, loadable_ext+1)) {
@@ -5612,3 +5612,3 @@ rb_f_require(obj, fname)
 #else
-	    feature = tmp = rb_str_dup(fname);
+	    feature = tmp;
 	    rb_str_cat2(tmp, DLEXT);
@@ -5619,2 +5619,3 @@ rb_f_require(obj, fname)
 	    }
+	    goto not_found;
 #endif
@@ -5628,2 +5629,3 @@ rb_f_require(obj, fname)
 	    }
+	    goto not_found;
 	}
@@ -5637,2 +5639,3 @@ rb_f_require(obj, fname)
 	    }
+	    goto not_found;
 	}
@@ -5656,2 +5659,3 @@ rb_f_require(obj, fname)
 	return Qfalse;
+  not_found:
     rb_raise(rb_eLoadError, "No such file to load -- %s", RSTRING(fname)->ptr);

In This Thread