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

ruby-changes:17950

From: usa <ko1@a...>
Date: Mon, 29 Nov 2010 14:11:56 +0900 (JST)
Subject: [ruby-changes:17950] Ruby:r29966 (trunk): * win32/win32.c (rb_w32_write_console): fixed indentation.

usa	2010-11-29 14:11:49 +0900 (Mon, 29 Nov 2010)

  New Revision: 29966

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

  Log:
    * win32/win32.c (rb_w32_write_console): fixed indentation.

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29965)
+++ ChangeLog	(revision 29966)
@@ -1,3 +1,7 @@
+Mon Nov 29 14:10:55 2010  NAKAMURA Usaku  <usa@r...>
+
+	* win32/win32.c (rb_w32_write_console): fixed indentation.
+
 Sun Nov 28 22:13:39 2010  Koichi Sasada  <ko1@a...>
 
 	* thread_pthread.c (NATIVE_MUTEX_LOCK_DEBUG): move and use it.
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 29965)
+++ win32/win32.c	(revision 29966)
@@ -5296,15 +5296,16 @@
     if (disable) return -1L;
     handle = (HANDLE)_osfhnd(fd);
     if (!GetConsoleMode(handle, &dwMode) ||
-    !rb_econv_has_convpath_p(rb_enc_name(rb_enc_get(str)), "UTF-16LE"))
-    return -1L;
+	!rb_econv_has_convpath_p(rb_enc_name(rb_enc_get(str)), "UTF-16LE"))
+	return -1L;
 
     str = rb_str_encode(str, rb_enc_from_encoding(rb_enc_find("UTF-16LE")), 0,
-            Qnil);
-    if (!WriteConsoleW(handle, (LPWSTR)RSTRING_PTR(str), RSTRING_LEN(str)/2, &reslen, NULL)) {
-        if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
-            disable = TRUE;
-        return -1L;
+			Qnil);
+    if (!WriteConsoleW(handle, (LPWSTR)RSTRING_PTR(str), RSTRING_LEN(str)/2,
+		       &reslen, NULL)) {
+	if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
+	    disable = TRUE;
+	return -1L;
     }
     return (long)reslen;
 }

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

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