From: "U.Nakamura" Date: 2001-05-18T00:10:07+09:00 Subject: [ruby-dev:13233] Re: SizedQueue#pop causes deadlock こんにちは、なかむら(う)です。 At Thu, 17 May 2001 08:04:05 +0900, "Akinori MUSHA" wrote in '[ruby-dev:13225] Re: SizedQueue#pop causes deadlock' >  もし動かないプラットフォームがあれば教えてください。 sha1_new() 内の rb_obj_call_init() は不要ではないかと思うの ですが、どうでしょう? これがあると、new に引数を与えると ArgmentError になります。 あと、ドキュメントに幾つか typo があるようです。 以下パッチ。 Index: sha1-ruby.c =================================================================== RCS file: /src/ruby/ext/sha1/sha1-ruby.c,v retrieving revision 1.1.1.1 diff -u -2 -p -r1.1.1.1 sha1-ruby.c --- sha1-ruby.c 2001/05/16 22:07:29 1.1.1.1 +++ sha1-ruby.c 2001/05/17 15:04:58 @@ -77,5 +77,4 @@ sha1_new(argc, argv, class) obj = Data_Make_Struct(class, SHA1_CTX, 0, free, sha1); - rb_obj_call_init(obj, argc, argv); SHA1Init(sha1); if (!NIL_P(arg)) { Index: sha1.txt =================================================================== RCS file: /src/ruby/ext/sha1/sha1.txt,v retrieving revision 1.2 diff -u -2 -p -r1.2 sha1.txt --- sha1.txt 2001/05/16 22:19:30 1.2 +++ sha1.txt 2001/05/17 15:04:58 @@ -1,3 +1,3 @@ -.\" sha1.doc - -*- Indented-Text -*- created at: Thu Mat 17 06:51:50 JST 2001 +.\" sha1.doc - -*- Indented-Text -*- created at: Thu May 17 06:51:50 JST 2001 ** SHA1(Class) Index: sha1.txt.jp =================================================================== RCS file: /src/ruby/ext/sha1/sha1.txt.jp,v retrieving revision 1.2 diff -u -2 -p -r1.2 sha1.txt.jp --- sha1.txt.jp 2001/05/16 22:28:40 1.2 +++ sha1.txt.jp 2001/05/17 15:04:58 @@ -1,9 +1,8 @@ -.\" sha1.doc - -*- Indented-Text -*- created at: Thu Mat 17 06:51:50 JST 2001 +.\" sha1.doc - -*- Indented-Text -*- created at: Thu May 17 06:51:50 JST 2001 ** SHA1(クラス) FIPS PUB 180-1に記述されているNIST (the US' National Institute of -Standards and Technology) の SHA1 Secure Hash Algorithm Algorithmを実装 -するクラス。 +Standards and Technology) の SHA1 Secure Hash Algorithmを実装するクラス。 Superclass: Object それでは。 -- U.Nakamura