summaryrefslogtreecommitdiff
path: root/include/ruby/win32.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-13 04:39:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-13 04:39:25 +0000
commit24b9cf95e04bfb54d3f97dc7a2e67e7fb14b592a (patch)
treeb3a460886abf09365fba1446776248cc4144772a /include/ruby/win32.h
parentda5ac6f565b134e42bcde3cced31b13b8b7fd569 (diff)
include/ruby/win32.h: fix comment style
* include/ruby/win32.h: get rid of C99 style one line comments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/win32.h')
-rw-r--r--include/ruby/win32.h46
1 files changed, 25 insertions, 21 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 9ad2f86..4d16b2b 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -20,16 +20,16 @@ extern "C" {
*
*/
-//
-// 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 @@ extern "C++" { /* template without extern "C++" */
#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 @@ scalb(double a, long b)
#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 @@ extern int rb_w32_fseeko(FILE *stream, off_t offset, int whence);
#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 @@ extern char *rb_w32_strerror(int);
#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