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

ruby-changes:24004

From: nobu <ko1@a...>
Date: Wed, 13 Jun 2012 13:39:35 +0900 (JST)
Subject: [ruby-changes:24004] nobu:r36055 (trunk): include/ruby/win32.h: fix comment style

nobu	2012-06-13 13:39:25 +0900 (Wed, 13 Jun 2012)

  New Revision: 36055

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

  Log:
    include/ruby/win32.h: fix comment style
    
    * include/ruby/win32.h: get rid of C99 style one line comments.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/win32.h

Index: include/ruby/win32.h
===================================================================
--- include/ruby/win32.h	(revision 36054)
+++ include/ruby/win32.h	(revision 36055)
@@ -20,16 +20,16 @@
  *
  */
 
-//
-// Definitions for NT port of Perl
-//
+/*
+ * Definitions for NT port of Perl
+ */
 
 
-//
-// Ok now we can include the normal include files.
-//
+/*
+ * Ok now we can include the normal include files.
+ */
 
-// #include <stdarg.h> conflict with varargs.h?
+/* #include <stdarg.h> conflict with varargs.h? */
 #if !defined(WSAAPI)
 #if defined(__cplusplus) && defined(_MSC_VER)
 extern "C++" {			/* template without extern "C++" */
@@ -46,10 +46,10 @@
 
 #define NT 1			/* deprecated */
 
-//
-// We're not using Microsoft's "extensions" to C for
-// Structured Exception Handling (SEH) so we can nuke these
-//
+/*
+ * We're not using Microsoft's "extensions" to C for
+ * Structured Exception Handling (SEH) so we can nuke these
+ */
 #undef try
 #undef except
 #undef finally
@@ -382,9 +382,9 @@
 #define S_IXOTH 0001
 #endif
 
-//
-// define this so we can do inplace editing
-//
+/*
+ * define this so we can do inplace editing
+ */
 
 #define SUFFIX
 
@@ -425,9 +425,9 @@
 #define ftello rb_w32_ftello
 #endif
 
-//
-// stubs
-//
+/*
+ * stubs
+ */
 extern int       ioctl (int, int, ...);
 extern rb_uid_t  getuid (void);
 extern rb_uid_t  geteuid (void);
@@ -573,11 +573,15 @@
 #endif
 
 #define F_DUPFD 0
-//#define F_GETFD 1
-//#define F_SETFD 2
-//#define F_GETFL 3
+#if 0
+#define F_GETFD 1
+#define F_SETFD 2
+#define F_GETFL 3
+#endif
 #define F_SETFL 4
-//#define FD_CLOEXEC 1 /* F_GETFD, F_SETFD */
+#if 0
+#define FD_CLOEXEC 1 /* F_GETFD, F_SETFD */
+#endif
 #define O_NONBLOCK 1
 
 #undef FD_SET
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36054)
+++ ChangeLog	(revision 36055)
@@ -1,3 +1,7 @@
+Wed Jun 13 13:39:23 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* include/ruby/win32.h: get rid of C99 style one line comments.
+
 Wed Jun 13 13:39:04 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* encoding.c (enc_alias_internal): use strdup defined as macro.

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

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