[#19685] [Oniguruma] Version 1.8.1 — "K.Kosako" <kosako@...>
ftp.ruby-lang.orgに、onigd20030301.tar.gzを置きました。
まつもと ゆきひろです
In article <1046613803.268414.3770.nullmailer@picachu.netlab.jp>,
まつもと ゆきひろです
In article <1046618629.053336.3932.nullmailer@picachu.netlab.jp>,
まつもと ゆきひろです
In article <1046626516.031539.4118.nullmailer@picachu.netlab.jp>,
まつもと ゆきひろです
Tanaka Akiraさんの<871y1pu8am.fsf@serein.a02.aist.go.jp>から
At Wed, 5 Mar 2003 18:07:17 +0900,
Akinori MUSHAさんの<86r89mi39s.wl%knu@iDaemons.org>から
At Wed, 5 Mar 2003 18:18:31 +0900,
Akinori MUSHAさんの<86bs0iqoif.wl%knu@iDaemons.org>から
In article <20030312044626.2D879C2@helium.ruby-lang.org>,
Tanaka Akiraさんの<87smtnl3r6.fsf@serein.a02.aist.go.jp>から
In article <20030317072134.6C0298D@helium.ruby-lang.org>,
In article <20030318015042.DCBB859A@helium.ruby-lang.org>,
Tanaka Akiraさんの<87llzavfl9.fsf@serein.a02.aist.go.jp>から
In article <20030321040221.EC03C5AA@helium.ruby-lang.org>,
まつもと ゆきひろです
In article <1048256492.877945.30145.nullmailer@picachu.netlab.jp>,
まつもと ゆきひろです
高橋征義です。
In article <20030326.151120.41647198.takahashi@twinspark.co.jp>,
In article <008c01c2f360$9ac1b030$85222fc0@sarion.co.jp>,
In article <003301c2f42d$8e60cf10$85222fc0@sarion.co.jp>,
なひです。
もりきゅうです。
In article <20030328080008J.maki@rubycolor.org>,
In article <20030408023633B.maki@rubycolor.org>,
In article <20030327085213Z.maki@rubycolor.org>,
In article <20030401.194831.74754691.takahashi@twinspark.co.jp>,
In article <1048256492.877945.30145.nullmailer@picachu.netlab.jp>,
別の問題なんですが、鬼車入り ruby 1.6 で以下のエラーが出るのは
In article <20030310030319.390374A6@helium.ruby-lang.org>,
[#19698] 1.8.0 preview2 — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
渡辺哲也です。
わたなべです。
渡辺哲也です。
わたなべです。
渡辺哲也です。
わたなべです。
[#19705] 1.8.0 preview2 — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
[#19712] bug in cgi.rb? — Masaki Fujimoto <fujimoto@...>
はじめまして。ふじもとと申します。
[#19741] Re: File.open with block calls IO#close even if it is overriden — "TOYOFUKU Chikanobu" <toyofuku@...>
豊福です。
[#19751] (1.8.0-preview2) Proc#call — Fukumoto Atsushi <fukumoto@...>
1.8.0-preview2 で、 Proc#call の動作がへんです。
なかだです。
まつもと ゆきひろです
なかだです。
まつもと ゆきひろです
なかだです。
まつもと ゆきひろです
なかだです。
まつもと ゆきひろです
新井です。
まつもと ゆきひろです
まつもと ゆきひろです
まつもと ゆきひろです
まつもと ゆきひろです
咳といいます。
まつもと ゆきひろです
咳といいます。
まつもと ゆきひろです
前田です。
まつもと ゆきひろです
前田です。
[#19771] IO#initialize is not called from IO.pipe and IO.popen — Tanaka Akira <akr@...17n.org>
ふと(というか気がつくべくして)、気がついたのですが、
なかだです。
In article <200303081816.h28IGAO20114@sharui.nakada.kanuma.tochigi.jp>,
[#19774] [ruby-core:00918] [1.8.0-preview2] make install — Minero Aoki <aamine@...>
あおきです。
[#19801] RSTRING(str)->ptr — nobu.nakada@...
なかだです。
まつもと ゆきひろです
こんばんは。nyasu@3web です。
なかだです。
[#19820] 1.8.0 の終了コードがおかしい? — Shin-ichiro HARA <sinara@...>
原です。
[#19826] SEGV on Rubicon with ruby -w — Tanaka Akira <akr@...17n.org>
ふと、Rubicon を ruby -w で動かすと core を吐くことがあることに気がつ
[#19830] lib/tracer.rb and Thread.critical — Fukumoto Atsushi <fukumoto@...>
[#19832] [ruby-talk:66990] README.EXT.ja seems to have more info... — Kazuo Saito <ksaito@...>
斉藤です。
斉藤です。
新井です。
[#19837] [BUG] (0...3).max/ruby-1.8.0 preview2 — Shin-ichiro HARA <sinara@...>
原です。
まつもと ゆきひろです
原です。
[#19865] dl in $SAFE=4 — Minero Aoki <aamine@...>
あおきです。
まつもと ゆきひろです
At Fri, 21 Mar 2003 23:33:11 +0900,
まつもと ゆきひろです
At Sun, 23 Mar 2003 08:19:10 +0900,
In article <200303230210.h2N2A57t014593@smtp8.dti.ne.jp>,
まつもと ゆきひろです
In article <1048483232.298501.13178.nullmailer@picachu.netlab.jp>,
[#19897] Proc#call parameter assignment — "NAKAMURA, Hiroshi" <nakahiro@...>
なひです。
まつもと ゆきひろです
なひです。
[#19924] Re: — Akio Takenaka <redmagic@...8.xrea.com>
はじめまして、Ruby初心者:竹中です。
[#19927] Pre-commit check failed — UENO Katsuhiro <unnie@...>
うえのです。
[ruby-dev:19832] [ruby-talk:66990] README.EXT.ja seems to have more info...
斉藤です。 ruby-talk をみていて [ruby-talk:66990] が目に止まりました。 float/double を C の値に変換したいんだけど、どうも rb_float_new の説明が あるのは日本語版の README.EXT.ja だけみたいだ、という話です。 その ruby-talk の方は pickaxe にのってるよ、でケリがついてるんですけど、 どうせなので一通り明らかに抜けている部分だけ、たいした量じゃないんですが update してみました。CVS 1.13との差分です。 よろしければお使いください。自信はないので、修正も歓迎です。
Attachments (1)
Index: README.EXT
===================================================================
RCS file: /src/ruby/README.EXT,v
retrieving revision 1.13
diff -u -r1.13 README.EXT
--- README.EXT 23 Oct 2002 08:20:35 -0000 1.13
+++ README.EXT 17 Mar 2003 18:09:39 -0000
@@ -35,6 +35,7 @@
T_HASH associative array
T_STRUCT (Ruby) structure
T_BIGNUM multi precision integer
+ T_FILE IO
T_TRUE true
T_FALSE false
T_DATA data
@@ -93,7 +94,9 @@
some machines), which can be convert to a C integer by using the
FIX2INT() macro. There is also NUM2INT() which converts any Ruby
numbers into C integers. The NUM2INT() macro includes a type check, so
-an exception will be raised if the conversion failed.
+an exception will be raised if the conversion failed. There are also
+a macro NUM2DBL() to retrieve the double float value and STR2CSTR() is
+useful to get the string as char*.
Other data types have corresponding C structures, e.g. struct RArray
for T_ARRAY etc. The VALUE of the type which has corresponding structure
@@ -488,6 +491,8 @@
rb_define_method(cDBM, "[]", fdbm_fetch, 1);
:
+ /* ID for a instance variable to store DBM data */
+ id_dbm = rb_intern("dbm");
}
--
@@ -756,6 +761,25 @@
This macro retrieves the pointer value from DATA, and assigns it to
the variable sval.
+** Checking data types
+
+TYPE(value)
+FIXNUM_P(value)
+NIL_P(value)
+void Check_Type(VALUE value, int type)
+void Check_SafeStr(VALUE value)
+
+** Data type conversion
+
+FIX2INT(value)
+INT2FIX(i)
+NUM2INT(value)
+INT2NUM(i)
+NUM2DBL(value)
+rb_float_new(f)
+STR2CSTR(value)
+rb_str_new2(s)
+
** defining class/module
VALUE rb_define_class(const char *name, VALUE super)
@@ -943,6 +967,10 @@
Prints a warning message according to a printf-like format, if
$VERBOSE is true.
+
+void rb_raise(rb_eRuntimeError, const char *fmt, ...)
+
+Raises RuntimeError. The fmt is a format string just like printf().
void rb_raise(VALUE exception, const char *fmt, ...)