Include attribution

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2006-08-27 23:03:20 +00:00
parent 92b0eb1f42
commit 6e83a71d3b
8 changed files with 46 additions and 39 deletions

View File

@ -262,6 +262,7 @@ Fri Aug 4 12:13:22 2006 Eric Hodel <drbrain@segment7.net>
* lib/.document: Include most of the standard library in RDoc * lib/.document: Include most of the standard library in RDoc
generation. generation.
* lib/rdoc/ri/ri_formatter.rb: Don't unescape HTML in HtmlFormatter. * lib/rdoc/ri/ri_formatter.rb: Don't unescape HTML in HtmlFormatter.
Submitted by <ksruby at gmail.com>. [ruby-core:08392].
* lib/drb/ssl.rb: Close socket on SSLError [ruby-core:7197] * lib/drb/ssl.rb: Close socket on SSLError [ruby-core:7197]
Fri Aug 4 18:59:49 2006 Keiju Ishitsuka <keiju@ruby-lang.org> Fri Aug 4 18:59:49 2006 Keiju Ishitsuka <keiju@ruby-lang.org>

3
eval.c
View File

@ -2877,8 +2877,9 @@ rb_eval(VALUE self, NODE *n)
case NODE_CASE: case NODE_CASE:
{ {
VALUE val; VALUE val = Qundef;
if (node->nd_head)
val = rb_eval(self, node->nd_head); val = rb_eval(self, node->nd_head);
node = node->nd_body; node = node->nd_body;
while (node) { while (node) {

View File

@ -1,6 +1,10 @@
# Add files to this as they become documented # Add files to this as they become documented
bigdecimal/bigdecimal.c
etc/etc.c
fcntl/fcntl.c
iconv/iconv.c iconv/iconv.c
io/wait/wait.c
nkf/lib/kconv.rb nkf/lib/kconv.rb
nkf/nkf.c nkf/nkf.c
socket/socket.c socket/socket.c

View File

@ -13,24 +13,6 @@
************************************************/ ************************************************/
/*
* This module provides an interface to the following hash algorithms:
*
* - the MD5 Message-Digest Algorithm by the RSA Data Security,
* Inc., described in RFC 1321
*
* - the SHA-1 Secure Hash Algorithm by NIST (the US' National
* Institute of Standards and Technology), described in FIPS PUB
* 180-1.
*
* - the SHA-256/384/512 Secure Hash Algorithm by NIST (the US'
* National Institute of Standards and Technology), described in
* FIPS PUB 180-2.
*
* - the RIPEMD-160 cryptographic hash function, designed by Hans
* Dobbertin, Antoon Bosselaers, and Bart Preneel.
*/
#include "digest.h" #include "digest.h"
static VALUE mDigest, cDigest_Base; static VALUE mDigest, cDigest_Base;
@ -244,7 +226,21 @@ rb_digest_base_equal(VALUE self, VALUE other)
} }
/* /*
* Init * This module provides an interface to the following hash algorithms:
*
* - the MD5 Message-Digest Algorithm by the RSA Data Security,
* Inc., described in RFC 1321
*
* - the SHA-1 Secure Hash Algorithm by NIST (the US' National
* Institute of Standards and Technology), described in FIPS PUB
* 180-1.
*
* - the SHA-256/384/512 Secure Hash Algorithm by NIST (the US'
* National Institute of Standards and Technology), described in
* FIPS PUB 180-2.
*
* - the RIPEMD-160 cryptographic hash function, designed by Hans
* Dobbertin, Antoon Bosselaers, and Bart Preneel.
*/ */
void void

View File

@ -41,17 +41,13 @@ void Init_wait _((void));
EXTERN struct timeval rb_time_interval _((VALUE time)); EXTERN struct timeval rb_time_interval _((VALUE time));
/* /*
=begin * call-seq:
= IO wait methods. *
=end * io.ready? -> boolean
*
* Returns non-nil if input available without blocking, or nil.
*/ */
/*
=begin
--- IO#ready?
returns non-nil if input available without blocking, or nil.
=end
*/
static VALUE static VALUE
io_ready_p(VALUE io) io_ready_p(VALUE io)
{ {
@ -84,12 +80,15 @@ wait_readable(VALUE p)
#endif #endif
/* /*
=begin * call-seq:
--- IO#wait([timeout]) *
waits until input available or timed out and returns self, or nil * io.wait -> io, true, false or nil
when EOF reached. * io.wait(timeout) -> io, true, false or nil
=end *
*/ * Waits until input is available or times out and returns self or nil when
* EOF is reached.
*/
static VALUE static VALUE
io_wait(int argc, VALUE *argv, VALUE io) io_wait(int argc, VALUE *argv, VALUE io)
{ {
@ -130,6 +129,10 @@ io_wait(int argc, VALUE *argv, VALUE io)
return Qnil; return Qnil;
} }
/*
* IO wait methods
*/
void void
Init_wait() Init_wait()
{ {

View File

@ -169,6 +169,7 @@ module RDoc
extend ParserFactory extend ParserFactory
parse_files_matching(/\.(c|cc|cpp|CC)$/) parse_files_matching(/\.(c|cc|cpp|CC)$/)
@@enclosure_classes = {}
@@known_bodies = {} @@known_bodies = {}
# prepare to parse a C file # prepare to parse a C file
@ -230,7 +231,7 @@ module RDoc
parent_name = @known_classes[parent] || parent parent_name = @known_classes[parent] || parent
if in_module if in_module
enclosure = @classes[in_module] enclosure = @classes[in_module] || @@enclosure_classes[in_module]
unless enclosure unless enclosure
if enclosure = @known_classes[in_module] if enclosure = @known_classes[in_module]
handle_class_module(in_module, (/^rb_m/ =~ in_module ? "module" : "class"), handle_class_module(in_module, (/^rb_m/ =~ in_module ? "module" : "class"),
@ -258,6 +259,7 @@ module RDoc
find_class_comment(cm.full_name, cm) find_class_comment(cm.full_name, cm)
@classes[var_name] = cm @classes[var_name] = cm
@@enclosure_classes[var_name] = cm
@known_classes[var_name] = cm.full_name @known_classes[var_name] = cm.full_name
end end

View File

@ -1488,7 +1488,7 @@ module RDoc
obj.pop_token obj.pop_token
end if @token_listeners end if @token_listeners
else else
warn("':' not followed by identified or operator") warn("':' not followed by identifier or operator")
tk = tk1 tk = tk1
end end
end end

View File

@ -2605,7 +2605,7 @@ primary : literal
| keyword_case opt_terms case_body keyword_end | keyword_case opt_terms case_body keyword_end
{ {
/*%%%*/ /*%%%*/
$$ = $3; $$ = NEW_CASE(NULL, $3);
/*% /*%
$$ = dispatch2(case, Qnil, $3); $$ = dispatch2(case, Qnil, $3);
%*/ %*/