ruby-changes:28773
From: ktsj <ko1@a...>
Date: Sun, 19 May 2013 12:10:53 +0900 (JST)
Subject: [ruby-changes:28773] ktsj:r40825 (trunk): fix typos. Patch by k_takata.
ktsj 2013-05-19 12:10:21 +0900 (Sun, 19 May 2013) New Revision: 40825 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40825 Log: fix typos. Patch by k_takata. Modified files: trunk/README.EXT trunk/README.EXT.ja trunk/bignum.c trunk/compile.c trunk/doc/ChangeLog-1.8.0 trunk/doc/ChangeLog-1.9.3 trunk/eval.c trunk/ext/bigdecimal/bigdecimal.c trunk/ext/bigdecimal/bigdecimal.h trunk/ext/curses/curses.c trunk/ext/dl/dl.c trunk/ext/openssl/ossl_ssl.c trunk/ext/pathname/pathname.c trunk/ext/psych/yaml/yaml.h trunk/ext/readline/readline.c trunk/ext/sdbm/_sdbm.c trunk/ext/tk/README.1st trunk/ext/tk/README.ActiveTcl trunk/ext/tk/README.tcltklib trunk/ext/tk/lib/tk/image.rb trunk/ext/tk/lib/tkextlib/SUPPORT_STATUS trunk/ext/tk/lib/tkextlib/tile/style.rb trunk/ext/tk/sample/figmemo_sample.rb trunk/ext/tk/sample/msgs_tk/README trunk/ext/tk/sample/tkextlib/blt/readme.txt trunk/ext/tk/sample/tkextlib/bwidget/Orig_LICENSE.txt trunk/ext/tk/sample/tkextlib/iwidgets/catalog_demo/Orig_LICENSE.txt trunk/ext/tk/sample/tkextlib/tcllib/Orig_LICENSE.txt trunk/ext/tk/sample/tkextlib/tkimg/demo.rb trunk/ext/tk/sample/tkextlib/tkimg/readme.txt trunk/ext/tk/sample/tkextlib/tktable/Orig_LICENSE.txt trunk/ext/tk/sample/tkextlib/treectrl/readme.txt trunk/ext/tk/sample/tkextlib/vu/Orig_LICENSE.txt trunk/file.c trunk/include/ruby/ruby.h trunk/io.c trunk/lib/base64.rb trunk/lib/net/ftp.rb trunk/lib/optparse.rb trunk/lib/prettyprint.rb trunk/lib/racc/parser.rb trunk/lib/rake/name_space.rb trunk/lib/rdoc/rd/block_parser.rb trunk/lib/rdoc/rd/inline_parser.rb trunk/lib/rubygems/commands/list_command.rb trunk/lib/rubygems.rb trunk/lib/shell.rb trunk/lib/sync.rb trunk/lib/tmpdir.rb trunk/missing/crypt.c trunk/missing/file.h trunk/missing/flock.c trunk/nacl/README.nacl trunk/process.c trunk/range.c trunk/ruby.c trunk/string.c trunk/thread.c trunk/time.c trunk/vm.c trunk/win32/file.c trunk/win32/win32.c Index: README.EXT =================================================================== --- README.EXT (revision 40824) +++ README.EXT (revision 40825) @@ -760,7 +760,7 @@ various conditions. https://github.com/ruby/ruby/blob/trunk/README.EXT#L760 check_sizeof(type[, headers[, opts]]): check size of type check_signedness(type[, headers[, opts]]): check signedness of type convertible_int(type[, headers[, opts]]): find convertible integer type - find_executable(bin[, path]): find excutable file path + find_executable(bin[, path]): find executable file path create_header(header): generate configured header create_makefile(target[, target_prefix]): generate Makefile @@ -853,7 +853,7 @@ lex.c :: automatically generated from https://github.com/ruby/ruby/blob/trunk/README.EXT#L853 eval_safe.c insns.def : definition of VM instructions iseq.c : implementation of VM::ISeq - thread.c : thread management and context swiching + thread.c : thread management and context switching thread_win32.c : thread implementation thread_pthread.c : ditto vm.c @@ -882,7 +882,7 @@ lex.c :: automatically generated from https://github.com/ruby/ruby/blob/trunk/README.EXT#L882 == Utility Functions -debug.c :: debug symbols for C debuggger +debug.c :: debug symbols for C debugger dln.c :: dynamic loading st.c :: general purpose hash table strftime.c :: formatting times @@ -1312,12 +1312,12 @@ VALUE rb_ensure(VALUE (*func1)(), VALUE https://github.com/ruby/ruby/blob/trunk/README.EXT#L1312 Calls the function func1 with arg1 as the argument, then calls func2 with arg2 if execution terminated. The return value from - rb_ensure() is that of func1 when no exception occured. + rb_ensure() is that of func1 when no exception occurred. VALUE rb_protect(VALUE (*func) (VALUE), VALUE arg, int *state) :: Calls the function func with arg as the argument. If no exception - occured during func, it returns the result of func and *state is zero. + occurred during func, it returns the result of func and *state is zero. Otherwise, it returns Qnil and sets *state to nonzero. If state is NULL, it is not set in both cases. You have to clear the error info with rb_set_errinfo(Qnil) when Index: doc/ChangeLog-1.8.0 =================================================================== --- doc/ChangeLog-1.8.0 (revision 40824) +++ doc/ChangeLog-1.8.0 (revision 40825) @@ -13763,7 +13763,7 @@ Tue Apr 17 17:33:55 2001 Yukihiro Matsu https://github.com/ruby/ruby/blob/trunk/doc/ChangeLog-1.8.0#L13763 * eval.c (handle_rescue): use === to compare exception match. - * error.c (syserr_eqq): comparison between SytemCallErrors should + * error.c (syserr_eqq): comparison between SystemCallErrors should based on their error numbers. Tue Apr 17 16:54:39 2001 K.Kosako <kosako@s...> Index: doc/ChangeLog-1.9.3 =================================================================== --- doc/ChangeLog-1.9.3 (revision 40824) +++ doc/ChangeLog-1.9.3 (revision 40825) @@ -14297,7 +14297,7 @@ Thu Jun 10 09:10:08 2010 Yukihiro Matsu https://github.com/ruby/ruby/blob/trunk/doc/ChangeLog-1.9.3#L14297 Wed Jun 9 22:51:50 2010 Tanaka Akira <akr@f...> - * time.c (find_time_t): always outerpolate from past. + * time.c (find_time_t): always extrapolate from past. [ruby-core:30672] reported by Benoit Daloze. Wed Jun 9 22:13:08 2010 Tanaka Akira <akr@f...> @@ -76939,7 +76939,7 @@ Sat May 28 16:39:21 2005 GOTOU Yuuzou https://github.com/ruby/ruby/blob/trunk/doc/ChangeLog-1.9.3#L76939 Sat May 28 05:15:44 2005 GOTOU Yuuzou <gotoyuzo@n...> * ext/openssl/ossl_x509store.c (ossl_x509stctx_set_time): should - not set internal flag directry. + not set internal flag directory. Sat May 28 02:00:11 2005 GOTOU Yuuzou <gotoyuzo@n...> Index: time.c =================================================================== --- time.c (revision 40824) +++ time.c (revision 40825) @@ -3030,7 +3030,7 @@ find_time_t(struct tm *tptr, int utc_p, https://github.com/ruby/ruby/blob/trunk/time.c#L3030 } } - /* Given argument has no corresponding time_t. Let's outerpolation. */ + /* Given argument has no corresponding time_t. Let's extrapolate. */ /* * `Seconds Since the Epoch' in SUSv3: * tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 + @@ -4520,8 +4520,8 @@ strftimev(const char *fmt, VALUE time, r https://github.com/ruby/ruby/blob/trunk/time.c#L4520 * * This method is similar to strftime() function defined in ISO C and POSIX. * - * While all directives are locale independant since Ruby 1.9, %Z is platform - * dependant. + * While all directives are locale independent since Ruby 1.9, %Z is platform + * dependent. * So, the result may differ even if the same format string is used in other * systems such as C. * Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 40824) +++ include/ruby/ruby.h (revision 40825) @@ -1782,7 +1782,7 @@ int ruby_vsnprintf(char *str, size_t n, https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1782 * @defgroup embed CRuby Embedding APIs * CRuby interpreter APIs. These are APIs to embed MRI interpreter into your * program. - * These functions are not a part of Ruby extention library API. + * These functions are not a part of Ruby extension library API. * Extension libraries of Ruby should not depend on these functions. * @{ */ Index: string.c =================================================================== --- string.c (revision 40824) +++ string.c (revision 40825) @@ -1093,7 +1093,7 @@ rb_enc_strlen_cr(const char *p, const ch https://github.com/ruby/ruby/blob/trunk/string.c#L1093 /* * UTF-8 leading bytes have either 0xxxxxxx or 11xxxxxx - * bit represention. (see http://en.wikipedia.org/wiki/UTF-8) + * bit representation. (see http://en.wikipedia.org/wiki/UTF-8) * Therefore, following pseudo code can detect UTF-8 leading byte. * * if (!(byte & 0x80)) Index: io.c =================================================================== --- io.c (revision 40824) +++ io.c (revision 40825) @@ -1598,7 +1598,7 @@ rb_io_seek_m(int argc, VALUE *argv, VALU https://github.com/ruby/ruby/blob/trunk/io.c#L1598 * ios.pos = integer -> integer * * Seeks to the given position (in bytes) in <em>ios</em>. - * It is not guranteed that seeking to the right position when <em>ios</em> + * It is not guaranteed that seeking to the right position when <em>ios</em> * is textmode. * * f = File.new("testfile") Index: lib/rake/name_space.rb =================================================================== --- lib/rake/name_space.rb (revision 40824) +++ lib/rake/name_space.rb (revision 40825) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/lib/rake/name_space.rb#L1 module Rake - # The NameSpace class will lookup task names in the the scope + # The NameSpace class will lookup task names in the scope # defined by a +namespace+ command. # class NameSpace Index: lib/base64.rb =================================================================== --- lib/base64.rb (revision 40824) +++ lib/base64.rb (revision 40825) @@ -25,7 +25,7 @@ module Base64 https://github.com/ruby/ruby/blob/trunk/lib/base64.rb#L25 # Returns the Base64-encoded version of +bin+. # This method complies with RFC 2045. - # Line feeds are added to every 60 encoded charactors. + # Line feeds are added to every 60 encoded characters. # # require 'base64' # Base64.encode64("Now is the time for all good coders\nto learn Ruby") Index: lib/prettyprint.rb =================================================================== --- lib/prettyprint.rb (revision 40824) +++ lib/prettyprint.rb (revision 40825) @@ -320,7 +320,7 @@ class PrettyPrint https://github.com/ruby/ruby/blob/trunk/lib/prettyprint.rb#L320 # Creates a new text object. # - # This contructor takes no arguments. + # This constructor takes no arguments. # # The workflow is to append a PrettyPrint::Text object to the buffer, and # being able to call the buffer.last() to reference it. @@ -359,7 +359,7 @@ class PrettyPrint https://github.com/ruby/ruby/blob/trunk/lib/prettyprint.rb#L359 # Create a new Breakable object. # # Arguments: - # * +sep+ String of the seperator + # * +sep+ String of the separator # * +width+ Fixnum width of the +sep+ # * +q+ parent PrettyPrint object, to base from def initialize(sep, width, q) @@ -371,7 +371,7 @@ class PrettyPrint https://github.com/ruby/ruby/blob/trunk/lib/prettyprint.rb#L371 @group.breakables.push self end - # Holds the seperator String + # Holds the separator String # # The +sep+ argument from ::new attr_reader :obj @@ -525,14 +525,14 @@ class PrettyPrint https://github.com/ruby/ruby/blob/trunk/lib/prettyprint.rb#L525 @first = [true] end - # Add +obj+ to the text to be outputed. + # Add +obj+ to the text to be output. # # +width+ argument is here for compatibility. It is a noop argument. def text(obj, width=nil) @output << obj end - # Appends +sep+ to the text to be outputed. By default +sep+ is ' ' + # Appends +sep+ to the text to be output. By default +sep+ is ' ' # # +width+ argument is here for compatibility. It is a noop argument. def breakable(sep=' ', width=nil) Index: lib/shell.rb =================================================================== --- lib/shell.rb (revision 40824) +++ lib/shell.rb (revision 40825) @@ -48,7 +48,7 @@ require "shell/process-controller" https://github.com/ruby/ruby/blob/trunk/lib/shell.rb#L48 # end # end # -# === Temp file creationg with self +# === Temp file creation with self # # This example is identical to the first, except we're using # CommandProcessor#transact. Index: lib/rubygems/commands/list_command.rb =================================================================== --- lib/rubygems/commands/list_command.rb (revision 40824) +++ lib/rubygems/commands/list_command.rb (revision 40825) @@ -3,7 +3,7 @@ require 'rubygems/commands/query_command https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/list_command.rb#L3 ## # An alternate to Gem::Commands::QueryCommand that searches for gems starting -# with the the supplied argument. +# with the supplied argument. class Gem::Commands::ListCommand < Gem::Commands::QueryCommand Index: lib/rubygems.rb =================================================================== --- lib/rubygems.rb (revision 40824) +++ lib/rubygems.rb (revision 40825) @@ -328,7 +328,7 @@ module Gem https://github.com/ruby/ruby/blob/trunk/lib/rubygems.rb#L328 end ## - # The path the the data directory specified by the gem name. If the + # The path to the data directory specified by the gem name. If the # package is not available as a gem, return nil. def self.datadir(gem_name) Index: lib/rdoc/rd/block_parser.rb =================================================================== --- lib/rdoc/rd/block_parser.rb (revision 40824) +++ lib/rdoc/rd/block_parser.rb (revision 40825) @@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/rdoc/rd/block_parser.rb#L1 # # DO NOT MODIFY!!!! # This file is automatically generated by Racc 1.4.9 -# from Racc grammer file "". +# from Racc grammar file "". # require 'racc/parser.rb' Index: lib/rdoc/rd/inline_parser.rb =================================================================== --- lib/rdoc/rd/inline_parser.rb (revision 40824) +++ lib/rdoc/rd/inline_parser.rb (revision 40825) @@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/rdoc/rd/inline_parser.rb#L1 # # DO NOT MODIFY!!!! # This file is automatically generated by Racc 1.4.9 -# from Racc grammer file "". +# from Racc grammar file "". # require 'racc/parser.rb' Index: lib/optparse.rb =================================================================== --- lib/optparse.rb (revision 40824) +++ lib/optparse.rb (revision 40825) @@ -737,7 +737,7 @@ class OptionParser https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L737 # OPTIONAL_ARGUMENT:: The switch requires an optional argument. (:OPTIONAL) # # Use like --switch=argument (long style) or -Xargument (short style). For - # short style, only portion matched to argument pattern is dealed as + # short style, only portion matched to argument pattern is treated as # argument. # ArgumentStyle = {} Index: lib/net/ftp.rb =================================================================== --- lib/net/ftp.rb (revision 40824) +++ lib/net/ftp.rb (revision 40825) @@ -214,7 +214,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/ftp.rb#L214 $stderr.puts("warning: Net::FTP#return_code= is obsolete and do nothing") end - # Contructs a socket with +host+ and +port+. + # Constructs a socket with +host+ and +port+. # # If SOCKSSocket is defined and the environment (ENV) defines # SOCKS_SERVER, then a SOCKSSocket is returned, else a TCPSocket is Index: lib/tmpdir.rb =================================================================== --- lib/tmpdir.rb (revision 40824) +++ lib/tmpdir.rb (revision 40825) @@ -39,7 +39,7 @@ class Dir https://github.com/ruby/ruby/blob/trunk/lib/tmpdir.rb#L39 # Dir.mktmpdir creates a temporary directory. # # The directory is created with 0700 permission. - # Application should not change the permission to make the temporary directory accesible from other users. + # Application should not change the permission to make the temporary directory accessible from other users. # # The prefix and suffix of the name of the directory is specified by # the optional first argument, <i>prefix_suffix</i>. Index: lib/racc/parser.rb =================================================================== --- lib/racc/parser.rb (revision 40824) +++ lib/racc/parser.rb (revision 40825) @@ -37,7 +37,7 @@ end https://github.com/ruby/ruby/blob/trunk/lib/racc/parser.rb#L37 # [--version] [--copyright] [--help] <var>grammarfile</var> # # [+filename+] -# Racc grammar file. Any extention is permitted. +# Racc grammar file. Any extension is permitted. # [-o+outfile+, --output-file=+outfile+] # A filename for output. default is <+filename+>.tab.rb # [-O+filename+, --log-file=+filename+] @@ -48,12 +48,12 @@ end https://github.com/ruby/ruby/blob/trunk/lib/racc/parser.rb#L48 # [-v, --verbose] # verbose mode. create +filename+.output file, like yacc's y.output file. # [-g, --debug] -# add debug code to parser class. To display debuggin information, +# add debug code to parser class. To display debugging information, # use this '-g' option and set @yydebug true in parser class. # [-E, --embedded] # Output parser which doesn't need runtime files (racc/parser.rb). # [-C, --check-only] -# Check syntax of racc grammer file and quit. +# Check syntax of racc grammar file and quit. # [-S, --output-status] # Print messages time to time while compiling. # [-l, --no-line-convert] @@ -187,7 +187,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/lib/racc/parser.rb#L187 Racc_Runtime_Core_Revision_R = %w$originalRevision: 1.8 $[1] begin require 'racc/cparse' - # Racc_Runtime_Core_Version_C = (defined in extention) + # Racc_Runtime_Core_Version_C = (defined in extension) Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2] unless new.respond_to?(:_racc_do_parse_c, true) raise LoadError, 'old cparse.so' Index: lib/sync.rb =================================================================== --- lib/sync.rb (revision 40824) +++ lib/sync.rb (revision 40825) @@ -315,7 +315,7 @@ end https://github.com/ruby/ruby/blob/trunk/lib/sync.rb#L315 Synchronizer_m = Sync_m ## -# A class that providesa two-phase lock with a counter. See Sync_m for +# A class that provides two-phase lock with a counter. See Sync_m for # details. class Sync Index: compile.c =================================================================== --- compile.c (revision 40824) +++ compile.c (revision 40825) @@ -3429,7 +3429,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ https://github.com/ruby/ruby/blob/trunk/compile.c#L3429 redo_label, end_label); } else if (type == NODE_UNTIL) { - /* untile */ + /* until */ compile_branch_condition(iseq, ret, node->nd_cond, end_label, redo_label); } @@ -4473,7 +4473,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ https://github.com/ruby/ruby/blob/trunk/compile.c#L4473 } ADD_INSN1(args, line, newarray, INT2FIX(j)); ADD_INSN (args, line, concatarray); - /* argc is setteled at above */ + /* argc is settled at above */ } else { int j; Index: range.c =================================================================== --- range.c (revision 40824) +++ range.c (revision 40825) @@ -1238,7 +1238,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/range.c#L1238 range_alloc(VALUE klass) { /* rb_struct_alloc_noinit itself should not be used because - * rb_marshal_define_compat uses equality of allocaiton function */ + * rb_marshal_define_compat uses equality of allocation function */ return rb_struct_alloc_noinit(klass); } Index: thread.c =================================================================== --- thread.c (revision 40824) +++ thread.c (revision 40825) @@ -1258,7 +1258,7 @@ call_without_gvl(void *(*func)(void *), https://github.com/ruby/ruby/blob/trunk/thread.c#L1258 /* * rb_thread_call_without_gvl - permit concurrent/parallel execution. * rb_thread_call_without_gvl2 - permit concurrent/parallel execution - * without interrupt proceess. + * without interrupt process. * * rb_thread_call_without_gvl() does: * (1) Check interrupts. @@ -1499,7 +1499,7 @@ thread_s_pass(VALUE klass) https://github.com/ruby/ruby/blob/trunk/thread.c#L1499 /* * rb_threadptr_pending_interrupt_* - manage asynchronous error queue * - * Async events such as an exception throwed by Thread#raise, + * Async events such as an exception thrown by Thread#raise, * Thread#kill and thread termination (after main thread termination) * will be queued to th->pending_interrupt_queue. * - clear: clear the queue. @@ -1699,7 +1699,7 @@ handle_interrupt_arg_check_i(VALUE key, https://github.com/ruby/ruby/blob/trunk/thread.c#L1699 * ::handle_interrupt block we can purposefully handle RuntimeError exceptions. * * th = Thread.new do - * Thead.handle_interrupt(RuntimeError => :never) { + * Thread.handle_interrupt(RuntimeError => :never) { * begin * # You can write resource allocation code safely. * Thread.handle_interrupt(RuntimeError => :immediate) { @@ -1807,7 +1807,7 @@ rb_thread_s_handle_interrupt(VALUE self, https://github.com/ruby/ruby/blob/trunk/thread.c#L1807 * call-seq: * target_thread.pending_interrupt?(error = nil) -> true/false * - * Returns whether or not the asychronous queue is empty for the target thread. + * Returns whether or not the asynchronous queue is empty for the target thread. * * If +error+ is given, then check only for +error+ type deferred events. * @@ -1960,7 +1960,7 @@ rb_threadptr_execute_interrupts(rb_threa https://github.com/ruby/ruby/blob/trunk/thread.c#L1960 if (err == Qundef) { /* no error */ } - else if (err == eKillSignal /* Thread#kill receieved */ || + else if (err == eKillSignal /* Thread#kill received */ || err == eTerminateSignal /* Terminate thread */ || err == INT2FIX(TAG_FATAL) /* Thread.exit etc. */ ) { rb_threadptr_to_kill(th); @@ -2749,7 +274 (... truncated) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/