[#9445] thread.rb — m_seki@...

18 messages 2000/03/16
[#9446] Re: thread.rb — matz@... (Yukihiro Matsumoto) 2000/03/17

[#9460] Re: thread.rb — m_seki@... 2000/03/21

[#9462] Re: thread.rb — matz@... (Yukihiro Matsumoto) 2000/03/21

まつもと ゆきひろです

[#11281] Re: thread.rb — Masatoshi SEKI <m_seki@...> 2000/10/22

[#9498] timeout しない timeout — ARIMA Yasuhiro <fit0298@...>

有馬です。

20 messages 2000/03/26
[#9506] Re: timeout しない timeout — matz@... (Yukihiro Matsumoto) 2000/03/27

まつもと ゆきひろです

[#9509] Re: timeout しない timeout — gotoken@... (GOTO Kentaro) 2000/03/27

In message "[ruby-dev:9506] Re: timeout しない timeout"

[ruby-dev:9362] [PATCH] README.EXT*

From: Katsuyuki Komatsu <komatsu@...>
Date: 2000-03-03 02:56:08 UTC
List: ruby-dev #9362
小松です。

README.EXT, README.EXT.jpをちょっとだけ修正しました。

--- README.EXT.dist	Tue Oct 12 13:53:32 1999
+++ README.EXT	Wed Feb  9 10:08:04 2000
@@ -68,5 +68,5 @@ data-types, the code will be like:
     default:
       /* raise exception */
-      Fail("not valid value");
+      rb_raise(rb_eTypeError, "not valid value");
       break;
   }
@@ -204,4 +204,9 @@ These functions return the newly created
 want to save this reference into the variable to use later.
 
+To define nested class or module, use functions below:
+
+  VALUE rb_define_class_under(VALUE outer, char *name, VALUE super)
+  VALUE rb_define_module_under(VALUE outer, char *name)
+
 2.1.2 Method/singleton method definition
 
@@ -388,7 +393,7 @@ To wrapping and objectify the C pointer 
 DATA), use Data_Wrap_Struct().
 
-  Data_Wrap_Struct(klass,mark,free,ptr)
+  Data_Wrap_Struct(klass, mark, free, ptr)
 
-Data_Wrap_Struct() returns a created DATA object.  The class argument
+Data_Wrap_Struct() returns a created DATA object.  The klass argument
 is the class for the DATA object.  The mark argument is the function
 to mark Ruby objects pointed by this data.  The free argument is the
@@ -485,5 +490,5 @@ struct dbmdata {
 
 
-obj = Data_Make_Struct(klass,struct dbmdata,0,free_dbm,dbmp);
+obj = Data_Make_Struct(klass, struct dbmdata, 0, free_dbm, dbmp);
 --
 
@@ -599,5 +604,5 @@ If the file named depend exists, Makefil
 check dependency.  You can make this file by invoking
 
- % gcc -MM *.c > depend
+  % gcc -MM *.c > depend
 
 It's no harm.  Prepare it.
@@ -658,6 +663,4 @@ utility functions
 
   dln.c
-  fnmatch.c
-  glob.c
   regex.c
   st.c
@@ -682,7 +685,9 @@ class library
   hash.c
   io.c
+  marshal.c
   math.c
   numeric.c
   pack.c
+  prec.c
   process.c
   random.c
@@ -780,9 +785,9 @@ rb_define_variable(), except defined var
 
  void rb_define_virtual_variable(char *name,
-				VALUE (*getter)(), VALUE (*setter)())
+				 VALUE (*getter)(), VALUE (*setter)())
 
 Defines a virtual variable, whose behavior is defined by pair of C
 functions.  The getter function is called when the variable is
-referred. The setter function is called when the value is set to the
+referred.  The setter function is called when the value is set to the
 variable.  The prototype for getter/setter functions are:
 
@@ -875,5 +880,5 @@ Returns the name corresponding ID.
 Returns the name of the class.
 
-  int rb_respond_to(VALUE object, ID id)
+ int rb_respond_to(VALUE object, ID id)
 
 Returns true if the object reponds to the message specified by id.
--- README.EXT.jp.dist	Tue Oct 12 13:53:32 1999
+++ README.EXT.jp	Wed Feb  9 10:08:04 2000
@@ -74,5 +74,5 @@ ruby.hではTYPE()というマクロが定義されて
     default:
       /* 例外を発生させる */
-      TypeError("not valid value");
+      rb_raise(rb_eTypeError, "not valid value");
       break;
   }
@@ -253,5 +253,5 @@ Rubyで提供されている関数を使えばRubyイン
 メソッドや特異メソッドを定義するには以下の関数を使います.
 
-  void rb_define_method(VALUE class, char *name, 
+  void rb_define_method(VALUE klass, char *name, 
 		        VALUE (*func)(), int argc)
 
@@ -278,6 +278,6 @@ argcが-1の時は引数を配列に入れて渡されま
 ソッドを定義する関数で,引数はrb_define_method()と同じです.
 
-  void rb_define_private_method(VALUE class, char *name, 
-			        VALUE (*func)(), int argc)
+  void rb_define_private_method(VALUE klass, char *name, 
+				VALUE (*func)(), int argc)
 
 privateメソッドとは関数形式でしか呼び出すことの出来ないメソッ
@@ -313,5 +313,5 @@ privateメソッドとは関数形式でしか呼び出、
 でしょう.定数を定義する関数は二つあります.
 
-  void rb_define_const(VALUE class, char *name, VALUE val)
+  void rb_define_const(VALUE klass, char *name, VALUE val)
   void rb_define_global_const(char *name, VALUE val)
 
@@ -468,9 +468,9 @@ Dataオブジェクトを生成して構造体をRubyオ
 化するためには,以下のマクロを使います.
 
-  Data_Wrap_Struct(class,mark,free,ptr)
+  Data_Wrap_Struct(klass, mark, free, ptr)
 
 このマクロの戻り値は生成されたDataオブジェクトです.
 
-classはこのDataオブジェクトのクラスです.ptrはカプセル化する
+klassはこのDataオブジェクトのクラスです.ptrはカプセル化する
 Cの構造体へのポインタです.markはこの構造体がRubyのオブジェ
 クトへの参照がある時に使う関数です.そのような参照を含まない
@@ -485,9 +485,9 @@ Cの構造体の割当とDataオブジェクトの生成、
 して以下のものが提供されています.
 
-  Data_Make_Struct(class, type, mark, free, sval)
+  Data_Make_Struct(klass, type, mark, free, sval)
 
 このマクロの戻り値は生成されたDataオブジェクトです.
 
-class, mark, freeはData_Wrap_Structと同じ働きをします.type
+klass, mark, freeはData_Wrap_Structと同じ働きをします.type
 は割り当てるC構造体の型です.割り当てられた構造体は変数sval
 に代入されます.この変数の型は (type*) である必要があります.
@@ -589,5 +589,5 @@ struct dbmdata {
 
 
-obj = Data_Make_Struct(class,struct dbmdata,0,free_dbm,dbmp);
+obj = Data_Make_Struct(klass, struct dbmdata, 0, free_dbm, dbmp);
 --
 
@@ -634,8 +634,8 @@ fdbm_delete(obj, keystr)
 --
 static VALUE
-fdbm_s_open(argc, argv, class)
+fdbm_s_open(argc, argv, klass)
     int argc;
     VALUE *argv;
-    VALUE class;
+    VALUE klass;
 {
 	:
@@ -713,5 +713,5 @@ Makefileを作る場合の雛型になるextconf.rb
 Makefileが依存関係をチェックしてくれます.
 
- % gcc -MM *.c > depend
+  % gcc -MM *.c > depend
 
 などで作ることが出来ます.あって損は無いでしょう.
@@ -794,6 +794,4 @@ Ruby言語のコア
 
   dln.c
-  fnmatch.c
-  glob.c
   regex.c
   st.c
@@ -822,4 +820,5 @@ Rubyコマンドの実装
   numeric.c
   pack.c
+  prec.c
   process.c
   random.c
@@ -861,5 +860,5 @@ Qfalse
 ** Cデータのカプセル化
 
-Data_Wrap_Struct(VALUE class, void (*mark)(), void (*free)(), void *sval)
+Data_Wrap_Struct(VALUE klass, void (*mark)(), void (*free)(), void *sval)
 
   Cの任意のポインタをカプセル化したRubyオブジェクトを返す.こ
@@ -869,5 +868,5 @@ Data_Wrap_Struct(VALUE class, void (*mar
   がある.
 
-Data_Make_Struct(class, type, mark, free, sval)
+Data_Make_Struct(klass, type, mark, free, sval)
 
   type型のメモリをmallocし,変数svalに代入した後,それをカプセ
@@ -916,5 +915,5 @@ VALUE rb_define_module_under(VALUE modul
   新しいRubyモジュールを定義し,moduleの定数として定義する.
 
-void rb_include_module(VALUE class, VALUE module)
+void rb_include_module(VALUE klass, VALUE module)
 
   モジュールをインクルードする.classがすでにmoduleをインク
@@ -975,5 +974,5 @@ void rb_define_global_const(char *name, 
 ** メソッド定義
 
-rb_define_method(VALUE class, char *name, VALUE (*func)(), int argc)
+rb_define_method(VALUE klass, char *name, VALUE (*func)(), int argc)
 
   メソッドを定義する.argcはselfを除く引数の数.argcが-1の時, 
@@ -983,9 +982,9 @@ rb_define_method(VALUE class, char *name
   いう形式で与えられる.
  
-rb_define_private_method(VALUE class, char *name, VALUE (*func)(), int argc)
+rb_define_private_method(VALUE klass, char *name, VALUE (*func)(), int argc)
 
   privateメソッドを定義する.引数はrb_define_method()と同じ.
 
-rb_define_singleton_method(VALUE class, char *name, VALUE (*func)(), int argc)
+rb_define_singleton_method(VALUE klass, char *name, VALUE (*func)(), int argc)
 
   特異メソッドを定義する.引数はrb_define_method()と同じ.
@@ -993,5 +992,5 @@ rb_define_singleton_method(VALUE class, 
 rb_scan_args(int argc, VALUE *argv, char *fmt, ...)
 
-  argc,argv形式で与えられた引数を分解する.fmtは必須引数の数, 
+  argc, argv形式で与えられた引数を分解する.fmtは必須引数の数, 
   付加引数の数, 残りの引数があるかを指定する文字列で, "数字
   数字*"という形式である. 2 番目の数字と"*"はそれぞれ省略可
@@ -1010,5 +1009,5 @@ VALUE rb_funcall(VALUE recv, ID mid, int
 VALUE rb_funcall2(VALUE recv, ID mid, int argc, VALUE *argv)
 
-  メソッド呼び出し.引数をargc,argv形式で渡す.
+  メソッド呼び出し.引数をargc, argv形式で渡す.
 
 VALUE rb_eval_string(char *str)
@@ -1024,7 +1023,7 @@ char *rb_id2name(ID id)
   IDに対応する文字列を返す(デバッグ用).
 
-char *rb_class2name(VALUE class)
+char *rb_class2name(VALUE klass)
 
-  classの名前を返す(デバッグ用).classが名前を持たない時には, 
+  クラスの名前を返す(デバッグ用).クラスが名前を持たない時には, 
   祖先を遡って名前を持つクラスの名前を返す.
 
@@ -1135,5 +1134,4 @@ find_library(lib, func, path...)
   関数funcを定義しているライブラリlibの存在を -Lpath を追加
   しながらチェックする.ライブラリが見付かった時,trueを返す.
-  結果をキャッシュしない.
 
 have_func(func)
@@ -1151,6 +1149,5 @@ find_header(header)
 
   ヘッダファイルの存在を -Ipath を追加しながらチェックする.
-  ヘッダファイルが見付かった時trueを返す.結果をキャッシュし
-  ない.
+  ヘッダファイルが見付かった時trueを返す.
 
 create_makefile(target)

--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>

In This Thread

Prev Next