[前][次][番号順一覧][スレッド一覧]

ruby-changes:32570

From: hsbt <ko1@a...>
Date: Sun, 19 Jan 2014 14:43:31 +0900 (JST)
Subject: [ruby-changes:32570] hsbt:r44649 (trunk): * ext/nkf/nkf-utf8/nkf.c: fix typo by @windwiny [fix GH-506]

hsbt	2014-01-19 14:43:23 +0900 (Sun, 19 Jan 2014)

  New Revision: 44649

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44649

  Log:
    * ext/nkf/nkf-utf8/nkf.c: fix typo by @windwiny [fix GH-506]
    * ext/openssl/ossl_ssl.c: ditto
    * ext/psych/yaml/scanner.c: ditto
    * ext/socket/init.c: ditto
    * ext/socket/socket.c: ditto
    * ext/tk/tcltklib.c: ditto
    * ext/win32ole/win32ole.c: ditto

  Modified files:
    trunk/ext/gdbm/gdbm.c
    trunk/ext/nkf/nkf-utf8/nkf.c
    trunk/ext/openssl/ossl_ssl.c
    trunk/ext/psych/yaml/scanner.c
    trunk/ext/socket/init.c
    trunk/ext/socket/socket.c
    trunk/ext/tk/tcltklib.c
    trunk/ext/win32ole/win32ole.c
Index: ext/win32ole/win32ole.c
===================================================================
--- ext/win32ole/win32ole.c	(revision 44648)
+++ ext/win32ole/win32ole.c	(revision 44649)
@@ -2799,7 +2799,7 @@ fole_s_connect(int argc, VALUE *argv, VA https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L2799
  *  so constant variable name of WIN32OLE object is capitalized.
  *  For example, the 'xlTop' constant of Excel is changed to 'XlTop'
  *  in WIN32OLE.
- *  If the first letter of constant variabl is not [A-Z], then
+ *  If the first letter of constant variable is not [A-Z], then
  *  the constant is defined as CONSTANTS hash element.
  *
  *     module EXCEL_CONST
@@ -3173,7 +3173,7 @@ fole_s_create_guid(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L3173
 /*
  * WIN32OLE.ole_initialize and WIN32OLE.ole_uninitialize
  * are used in win32ole.rb to fix the issue bug #2618 (ruby-core:27634).
- * You must not use thease method.
+ * You must not use these method.
  */
 
 /* :nodoc */
Index: ext/tk/tcltklib.c
===================================================================
--- ext/tk/tcltklib.c	(revision 44648)
+++ ext/tk/tcltklib.c	(revision 44649)
@@ -1375,7 +1375,7 @@ tcltkip_init_tk(interp) https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L1375
 }
 
 
-/* treat excetiopn on Tcl side */
+/* treat exception on Tcl side */
 static VALUE rbtk_pending_exception;
 static int rbtk_eventloop_depth = 0;
 static int rbtk_internal_eventloop_handler = 0;
@@ -3783,7 +3783,7 @@ ip_RubyExitCommand(clientData, interp, a https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L3783
 #endif
 
     if (argc < 1 || argc > 2) {
-        /* arguemnt error */
+        /* argument error */
         Tcl_AppendResult(interp,
                          "wrong number of arguments: should be \"",
                          cmd, " ?returnCode?\"", (char *)NULL);
@@ -6245,7 +6245,7 @@ ip_init(argc, argv, self) https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L6245
     /*  FIX ME (2010/06/28)                                                  */
     /*    Don't use ::chan command for Mk4tcl + tclvfs-1.4 on Tcl8.5.        */
     /*    It fails to access VFS files because of vfs::zstream.              */
-    /*    So, force to use ::rechan by temporaly hiding ::chan.              */
+    /*    So, force to use ::rechan by temporarily hiding ::chan.            */
     /*************************************************************************/
     Tcl_Eval(ptr->ip, "catch {rename ::chan ::_tmp_chan}");
     if (Tcl_Init(ptr->ip) == TCL_ERROR) {
@@ -11013,7 +11013,7 @@ Init_tcltklib() https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L11013
     /* --------------------------------------------------------------- */
 
 #ifdef HAVE_NATIVETHREAD
-    /* if ruby->nativethread-supprt and tcltklib->doen't,
+    /* if ruby->nativethread-support and tcltklib->doesn't,
        the following will cause link-error. */
     ruby_native_thread_p();
 #endif
Index: ext/nkf/nkf-utf8/nkf.c
===================================================================
--- ext/nkf/nkf-utf8/nkf.c	(revision 44648)
+++ ext/nkf/nkf-utf8/nkf.c	(revision 44649)
@@ -4340,7 +4340,7 @@ mime_ungetc_buf(nkf_char c, FILE *f) https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf-utf8/nkf.c#L4340
 static nkf_char
 mime_getc_buf(FILE *f)
 {
-    /* we don't keep eof of mime_input_buf, becase it contains ?= as
+    /* we don't keep eof of mime_input_buf, because it contains ?= as
        a terminator. It was checked in mime_integrity. */
     return ((mimebuf_f)?
 	    (*i_mgetc_buf)(f):mime_input_buf(mime_input_state.input++));
@@ -5713,9 +5713,9 @@ module_connection(void) https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf-utf8/nkf.c#L5713
 		x0201_f = X0201_DEFAULT;
 	}
 
-    /* replace continucation module, from output side */
+    /* replace continuation module, from output side */
 
-    /* output redicrection */
+    /* output redirection */
 #ifdef CHECK_OPTION
     if (noout_f || guess_f){
 	o_putc = no_putc;
@@ -5752,7 +5752,7 @@ module_connection(void) https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf-utf8/nkf.c#L5752
 
     i_getc = std_getc;
     i_ungetc = std_ungetc;
-    /* input redicrection */
+    /* input redirection */
 #ifdef INPUT_OPTION
     if (cap_f){
 	i_cgetc = i_getc; i_getc = cap_getc;
@@ -5914,7 +5914,7 @@ kanji_convert(FILE *f) https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf-utf8/nkf.c#L5914
 		/* in case of 8th bit is on */
 		if (!estab_f&&!mime_decode_mode) {
 		    /* in case of not established yet */
-		    /* It is still ambiguious */
+		    /* It is still ambiguous */
 		    if (h_conv(f, c2, c1)==EOF) {
 			LAST;
 		    }
@@ -6898,7 +6898,7 @@ options(unsigned char *cp) https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf-utf8/nkf.c#L6898
 	    continue;
 #endif
 	case SP:
-	    /* module muliple options in a string are allowed for Perl moudle  */
+	    /* module multiple options in a string are allowed for Perl module  */
 	    while(*cp && *cp++!='-');
 	    continue;
 	default:
Index: ext/openssl/ossl_ssl.c
===================================================================
--- ext/openssl/ossl_ssl.c	(revision 44648)
+++ ext/openssl/ossl_ssl.c	(revision 44649)
@@ -2019,7 +2019,7 @@ Init_ossl_ssl() https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ssl.c#L2019
     rb_attr(cSSLContext, rb_intern("session_get_cb"), 1, 1, Qfalse);
 
     /*
-     * A callback invoked when a new session was negotiatied.
+     * A callback invoked when a new session was negotiated.
      *
      * The callback is invoked with an SSLSocket.  If false is returned the
      * session will be removed from the internal cache.
Index: ext/psych/yaml/scanner.c
===================================================================
--- ext/psych/yaml/scanner.c	(revision 44648)
+++ ext/psych/yaml/scanner.c	(revision 44649)
@@ -70,7 +70,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/scanner.c#L70
  *      %TAG    !yaml!  tag:yaml.org,2002:
  *      ---
  *
- * The correspoding sequence of tokens:
+ * The corresponding sequence of tokens:
  *
  *      STREAM-START(utf-8)
  *      VERSION-DIRECTIVE(1,1)
Index: ext/socket/init.c
===================================================================
--- ext/socket/init.c	(revision 44648)
+++ ext/socket/init.c	(revision 44649)
@@ -308,7 +308,7 @@ wait_connectable(int fd) https://github.com/ruby/ruby/blob/trunk/ext/socket/init.c#L308
 
     for (;;) {
 	/*
-	 * Stevens book says, succuessful finish turn on RB_WAITFD_OUT and
+	 * Stevens book says, successful finish turn on RB_WAITFD_OUT and
 	 * failure finish turn on both RB_WAITFD_IN and RB_WAITFD_OUT.
 	 */
 	revents = rb_wait_for_single_fd(fd, RB_WAITFD_IN|RB_WAITFD_OUT, NULL);
Index: ext/socket/socket.c
===================================================================
--- ext/socket/socket.c	(revision 44648)
+++ ext/socket/socket.c	(revision 44649)
@@ -2006,7 +2006,7 @@ Init_socket() https://github.com/ruby/ruby/blob/trunk/ext/socket/socket.c#L2006
      *
      * === What's a socket?
      *
-     * Sockets are endpoints of a bidirectionnal communication channel.
+     * Sockets are endpoints of a bidirectional communication channel.
      * Sockets can communicate within a process, between processes on the same
      * machine or between different machines.  There are many types of socket:
      * TCPSocket, UDPSocket or UNIXSocket for example.
@@ -2031,7 +2031,7 @@ Init_socket() https://github.com/ruby/ruby/blob/trunk/ext/socket/socket.c#L2031
      *
      * *hostname:*
      * The identifier of a network interface:
-     * *    a string (hostname, IPv4 or IPv6 adress or +broadcast+
+     * *    a string (hostname, IPv4 or IPv6 address or +broadcast+
      *	    which specifies a broadcast address)
      * *    a zero-length string which specifies INADDR_ANY
      * *    an integer (interpreted as binary address in host byte order).
Index: ext/gdbm/gdbm.c
===================================================================
--- ext/gdbm/gdbm.c	(revision 44648)
+++ ext/gdbm/gdbm.c	(revision 44649)
@@ -878,7 +878,7 @@ fgdbm_each_key(VALUE obj) https://github.com/ruby/ruby/blob/trunk/ext/gdbm/gdbm.c#L878
  *      gdbm.each_pair { |key, value| block } -> gdbm
  *
  * Executes _block_ for each key in the database, passing the _key_ and the
- * correspoding _value_ as a parameter.
+ * corresponding _value_ as a parameter.
  */
 static VALUE
 fgdbm_each_pair(VALUE obj)
@@ -1062,7 +1062,7 @@ fgdbm_reorganize(VALUE obj) https://github.com/ruby/ruby/blob/trunk/ext/gdbm/gdbm.c#L1062
  *     gdbm.sync -> gdbm
  *
  * Unless the _gdbm_ object has been opened with the *SYNC* flag, it is not
- * guarenteed that database modification operations are immediately applied to
+ * guaranteed that database modification operations are immediately applied to
  * the database file. This method ensures that all recent modifications
  * to the database are written to the file. Blocks until all writing operations
  * to the disk have been finished.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]