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
This commit is contained in:
nobu 2012-06-13 04:39:25 +00:00
parent da5ac6f565
commit 24b9cf95e0
2 changed files with 29 additions and 21 deletions

View File

@ -1,3 +1,7 @@
Wed Jun 13 13:39:23 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/win32.h: get rid of C99 style one line comments.
Wed Jun 13 13:39:04 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed Jun 13 13:39:04 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* encoding.c (enc_alias_internal): use strdup defined as macro. * encoding.c (enc_alias_internal): use strdup defined as macro.

View File

@ -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(WSAAPI)
#if defined(__cplusplus) && defined(_MSC_VER) #if defined(__cplusplus) && defined(_MSC_VER)
extern "C++" { /* template without extern "C++" */ extern "C++" { /* template without extern "C++" */
@ -46,10 +46,10 @@ extern "C++" { /* template without extern "C++" */
#define NT 1 /* deprecated */ #define NT 1 /* deprecated */
// /*
// We're not using Microsoft's "extensions" to C for * We're not using Microsoft's "extensions" to C for
// Structured Exception Handling (SEH) so we can nuke these * Structured Exception Handling (SEH) so we can nuke these
// */
#undef try #undef try
#undef except #undef except
#undef finally #undef finally
@ -382,9 +382,9 @@ scalb(double a, long b)
#define S_IXOTH 0001 #define S_IXOTH 0001
#endif #endif
// /*
// define this so we can do inplace editing * define this so we can do inplace editing
// */
#define SUFFIX #define SUFFIX
@ -425,9 +425,9 @@ extern int rb_w32_fseeko(FILE *stream, off_t offset, int whence);
#define ftello rb_w32_ftello #define ftello rb_w32_ftello
#endif #endif
// /*
// stubs * stubs
// */
extern int ioctl (int, int, ...); extern int ioctl (int, int, ...);
extern rb_uid_t getuid (void); extern rb_uid_t getuid (void);
extern rb_uid_t geteuid (void); extern rb_uid_t geteuid (void);
@ -573,11 +573,15 @@ extern char *rb_w32_strerror(int);
#endif #endif
#define F_DUPFD 0 #define F_DUPFD 0
//#define F_GETFD 1 #if 0
//#define F_SETFD 2 #define F_GETFD 1
//#define F_GETFL 3 #define F_SETFD 2
#define F_GETFL 3
#endif
#define F_SETFL 4 #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 #define O_NONBLOCK 1
#undef FD_SET #undef FD_SET