mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
da5ac6f565
commit
24b9cf95e0
2 changed files with 29 additions and 21 deletions
|
@ -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>
|
||||
|
||||
* encoding.c (enc_alias_internal): use strdup defined as macro.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue