ruby-changes:21585
From: nobu <ko1@a...>
Date: Fri, 4 Nov 2011 16:19:40 +0900 (JST)
Subject: [ruby-changes:21585] nobu:r33634 (trunk): * whitespace cleanup.
nobu 2011-11-04 16:19:23 +0900 (Fri, 04 Nov 2011) New Revision: 33634 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33634 Log: * whitespace cleanup. Modified files: trunk/ext/bigdecimal/bigdecimal.c trunk/ext/dbm/dbm.c trunk/ext/etc/etc.c trunk/ext/openssl/ossl_asn1.c trunk/ext/openssl/ossl_digest.c trunk/ext/openssl/ossl_engine.c trunk/ext/openssl/ossl_pkey.h trunk/ext/readline/readline.c trunk/ext/socket/ancdata.c trunk/hash.c trunk/io.c trunk/string.c trunk/thread_pthread.c trunk/time.c Index: time.c =================================================================== --- time.c (revision 33633) +++ time.c (revision 33634) @@ -4882,7 +4882,7 @@ * t = Time.new(1993, 02, 24, 12, 0, 0, "+09:00") * * Was that a monday? - * + * * t.monday? #=> false * * What year was that again? @@ -4905,7 +4905,7 @@ * * t1 = Time.new(2010) * t2 = Time.new(2011) - * + * * t1 == t2 #=> false * t1 == t1 #=> true * t1 < t2 #=> true Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 33633) +++ thread_pthread.c (revision 33634) @@ -1091,7 +1091,7 @@ { #define CCP_READ_BUFF_SIZE 1024 /* buffer can be shared because no one refers to them. */ - static char buff[CCP_READ_BUFF_SIZE]; + static char buff[CCP_READ_BUFF_SIZE]; ssize_t result; retry: @@ -1150,11 +1150,11 @@ timeout.tv_usec = TIME_QUANTUM_USEC; /* polling (TIME_QUANTUM_USEC usec) */ - result = select(timer_thread_pipe[0] + 1, &rfds, 0, 0, &timeout); + result = select(timer_thread_pipe[0] + 1, &rfds, 0, 0, &timeout); } else { /* wait (infinite) */ - result = select(timer_thread_pipe[0] + 1, &rfds, 0, 0, 0); + result = select(timer_thread_pipe[0] + 1, &rfds, 0, 0, 0); } if (result == 0) { Index: string.c =================================================================== --- string.c (revision 33633) +++ string.c (revision 33634) @@ -5233,14 +5233,14 @@ * call-seq: * str.tr(from_str, to_str) => new_str * - * Returns a copy of <i>str</i> with the characters in <i>from_str</i> - * replaced by the corresponding characters in <i>to_str</i>. If + * Returns a copy of <i>str</i> with the characters in <i>from_str</i> + * replaced by the corresponding characters in <i>to_str</i>. If * <i>to_str</i> is shorter than <i>from_str</i>, it is padded with its last * character in order to maintain the correspondence. * * "hello".tr('el', 'ip') #=> "hippo" * "hello".tr('aeiou', '*') #=> "h*ll*" - * + * * Both strings may use the c1-c2 notation to denote ranges of characters, * and <i>from_str</i> may start with a <code>^</code>, which denotes all * characters except those listed. Index: io.c =================================================================== --- io.c (revision 33633) +++ io.c (revision 33634) @@ -5629,7 +5629,7 @@ * be passed the opened +file+ as an argument, and the File object will * automatically be closed when the block terminates. In this instance, * <code>File.open</code> returns the value of the block. - * + * * See IO.new for a list of values for the +opt+ parameter. */ Index: ext/bigdecimal/bigdecimal.c =================================================================== --- ext/bigdecimal/bigdecimal.c (revision 33633) +++ ext/bigdecimal/bigdecimal.c (revision 33634) @@ -4334,7 +4334,7 @@ VpAsgn(c, a, VpGetSign(b)); VpSetZero(r,VpGetSign(a)); goto Exit; - } + } word_a = a->Prec; word_b = b->Prec; Index: ext/readline/readline.c =================================================================== --- ext/readline/readline.c (revision 33633) +++ ext/readline/readline.c (revision 33634) @@ -159,7 +159,7 @@ } } } -#endif +#endif c = rb_funcall(readline_instream, id_getbyte, 0, 0); if (NIL_P(c)) return EOF; return NUM2CHR(c); Index: ext/openssl/ossl_engine.c =================================================================== --- ext/openssl/ossl_engine.c (revision 33633) +++ ext/openssl/ossl_engine.c (revision 33634) @@ -82,10 +82,10 @@ #if HAVE_ENGINE_LOAD_NURON OSSL_ENGINE_LOAD_IF_MATCH(nuron); #endif -#if HAVE_ENGINE_LOAD_SUREWARE +#if HAVE_ENGINE_LOAD_SUREWARE OSSL_ENGINE_LOAD_IF_MATCH(sureware); #endif -#if HAVE_ENGINE_LOAD_UBSEC +#if HAVE_ENGINE_LOAD_UBSEC OSSL_ENGINE_LOAD_IF_MATCH(ubsec); #endif #if HAVE_ENGINE_LOAD_PADLOCK @@ -136,7 +136,7 @@ /* Need a ref count of two here because of ENGINE_free being * called internally by OpenSSL when moving to the next ENGINE * and by us when releasing the ENGINE reference */ - ENGINE_up_ref(e); + ENGINE_up_ref(e); WrapEngine(klass, obj, e); rb_ary_push(ary, obj); } Index: ext/openssl/ossl_digest.c =================================================================== --- ext/openssl/ossl_digest.c (revision 33633) +++ ext/openssl/ossl_digest.c (revision 33634) @@ -409,7 +409,7 @@ * data1 = File.read('file1') * sha256 = OpenSSL::Digest::SHA256.new * digest1 = sha256.digest(data1) - * + * * data2 = File.read('file2') * sha256.reset * digest2 = sha256.digest(data2) Index: ext/openssl/ossl_asn1.c =================================================================== --- ext/openssl/ossl_asn1.c (revision 33633) +++ ext/openssl/ossl_asn1.c (revision 33634) @@ -869,7 +869,7 @@ rb_ary_push(ary, value); if (length > 0) length -= inner_read; - + if (infinite && NUM2INT(ossl_asn1_get_tag(value)) == V_ASN1_EOC && SYM2ID(ossl_asn1_get_tag_class(value)) == sUNIVERSAL) { Index: ext/openssl/ossl_pkey.h =================================================================== --- ext/openssl/ossl_pkey.h (revision 33633) +++ ext/openssl/ossl_pkey.h (revision 33634) @@ -45,7 +45,7 @@ int yield; int stop; int state; -}; +}; int ossl_generate_cb_2(int p, int n, BN_GENCB *cb); void ossl_generate_cb_stop(void *ptr); #endif Index: ext/socket/ancdata.c =================================================================== --- ext/socket/ancdata.c (revision 33633) +++ ext/socket/ancdata.c (revision 33634) @@ -1385,7 +1385,7 @@ discard_cmsg(struct cmsghdr *cmh, char *msg_end, int msg_peek_p) { # if !defined(FD_PASSING_WORK_WITH_RECVMSG_MSG_PEEK) - /* + /* * FreeBSD 8.2.0, NetBSD 5 and MacOS X Snow Leopard doesn't * allocate fds by recvmsg with MSG_PEEK. * [ruby-dev:44189] Index: ext/dbm/dbm.c =================================================================== --- ext/dbm/dbm.c (revision 33633) +++ ext/dbm/dbm.c (revision 33634) @@ -137,7 +137,7 @@ FilePathValue(file); - /* + /* * Note: * The dbm compatibility layer of gdbm 1.9 doesn't respect O_CLOEXEC. */ Index: ext/etc/etc.c =================================================================== --- ext/etc/etc.c (revision 33633) +++ ext/etc/etc.c (revision 33634) @@ -611,13 +611,13 @@ * the logged in user than environment variables such as $USER. For example: * * require 'etc' - * + * * login = Etc.getlogin * info = Etc.getpwnam(login) * username = info.gecos.split(/,/).first * puts "Hello #{username}, I see your login name is #{login}" * - * Note that the methods provided by this module are not always secure. + * Note that the methods provided by this module are not always secure. * It should be used for informational purposes, and not for security. */ void Index: hash.c =================================================================== --- hash.c (revision 33633) +++ hash.c (revision 33634) @@ -3151,24 +3151,24 @@ * A Hash is a dictionary-like collection of unique keys and their values. * Also called associative arrays, they are similar to Arrays, but where an * Array uses integers as its index, a Hash allows you to use any object - * type. + * type. * * Hashes enumerate their values in the order that the corresponding keys - * were inserted. + * were inserted. * * A Hash can be easily created by using its implicit form: * * grades = { "Jane Doe" => 10, "Jim Doe" => 6 } - * + * * Hashes allow an alternate syntax form when your keys are always symbols. - * Instead of + * Instead of * * options = { :font_size => 10, :font_family => "Arial" } - * - * You could write it as: * + * You could write it as: + * * options = { font_size: 10, font_family: "Arial" } - * + * * Each named key is a symbol you can access in hash: * * options[:font_size] # => 10 @@ -3180,7 +3180,7 @@ * * Hashes have a <em>default value</em> that is returned when accessing * keys that do not exist in the hash. If no default is set +nil+ is used. - * You can set the default value by sending it as an argument to Hash.new: + * You can set the default value by sending it as an argument to Hash.new: * * grades = Hash.new(0) * @@ -3188,11 +3188,11 @@ * * grades = {"Timmy Doe" => 8} * grades.default = 0 - * + * * Accessing a value in a Hash requires using its key: * * puts grades["Jane Doe"] # => 10 - * + * * === Common Uses * * Hashes are an easy way to represent data structures, such as @@ -3200,12 +3200,12 @@ * books = {} * books[:matz] = "The Ruby Language" * books[:black] = "The Well-Grounded Rubyist" - * + * * Hashes are also commonly used as a way to have named parameters in * functions. Note that no brackets are used below. If a hash is the last * argument on a method call, no braces are needed, thus creating a really - * clean interface: - * + * clean interface: + * * Person.create(name: "John Doe", age: 27) * * def self.create(params) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/