зеркало из https://github.com/github/ruby.git
* parse.y (BITSTACK_POP): workaround for bcc32 compiler's bug.
shift assignment operator '>>=' for __int64 in struct may generate collapsed code. [ruby-dev:25342] * win32/win32.[ch]: failed to compile on bcc32 (and probably wince) [ruby-dev:25306] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5e51e94304
Коммит
09736c1621
|
@ -1,3 +1,12 @@
|
|||
Wed Jan 5 16:39:54 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* parse.y (BITSTACK_POP): workaround for bcc32 compiler's bug.
|
||||
shift assignment operator '>>=' for __int64 in struct may
|
||||
generate collapsed code. [ruby-dev:25342]
|
||||
|
||||
* win32/win32.[ch]: failed to compile on bcc32 (and probably wince)
|
||||
[ruby-dev:25306]
|
||||
|
||||
Wed Jan 5 12:49:39 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_thread_initialize): Thread objects cannot be initialized
|
||||
|
|
2
parse.y
2
parse.y
|
@ -73,7 +73,7 @@ typedef unsigned long stack_type;
|
|||
# endif
|
||||
|
||||
# define BITSTACK_PUSH(stack, n) (stack = (stack<<1)|((n)&1))
|
||||
# define BITSTACK_POP(stack) (stack >>= 1)
|
||||
# define BITSTACK_POP(stack) (stack = stack >> 1)
|
||||
# define BITSTACK_LEXPOP(stack) (stack = (stack >> 1) | (stack & 1))
|
||||
# define BITSTACK_SET_P(stack) (stack&1)
|
||||
|
||||
|
|
|
@ -3520,6 +3520,7 @@ rb_w32_snprintf(char *buf, size_t size, const char *format, ...)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if !defined(__BORLANDC__) && !defined(_WIN32_WCE)
|
||||
int
|
||||
rb_w32_isatty(int fd)
|
||||
{
|
||||
|
@ -3533,6 +3534,7 @@ rb_w32_isatty(int fd)
|
|||
}
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#undef mkdir
|
||||
#undef rmdir
|
||||
|
|
|
@ -105,7 +105,6 @@ extern "C++" {
|
|||
#define eof() _eof()
|
||||
#define filelength(h) _filelength(h)
|
||||
#define mktemp(t) _mktemp(t)
|
||||
#define perror(s) _perror(s)
|
||||
#define read(h, b, l) _read(h, b, l)
|
||||
#define tell(h) _tell(h)
|
||||
#define unlink(p) _unlink(p)
|
||||
|
@ -127,8 +126,10 @@ extern "C++" {
|
|||
#define stat(path,st) rb_w32_stat(path,st)
|
||||
#undef execv
|
||||
#define execv(path,argv) rb_w32_aspawn(P_OVERLAY,path,argv)
|
||||
#if !defined(__BORLANDC__) && !defined(_WIN32_WCE)
|
||||
#undef isatty
|
||||
#define isatty(h) rb_w32_isatty(h)
|
||||
#endif
|
||||
|
||||
#undef mkdir
|
||||
#define mkdir(p, m) rb_w32_mkdir(p, m)
|
||||
|
@ -195,7 +196,9 @@ extern int rb_w32_aspawn(int, const char *, char *const *);
|
|||
extern int kill(int, int);
|
||||
extern int fcntl(int, int, ...);
|
||||
extern pid_t rb_w32_getpid(void);
|
||||
#if !defined(__BORLANDC__) && !defined(_WIN32_WCE)
|
||||
extern int rb_w32_isatty(int);
|
||||
#endif
|
||||
extern int rb_w32_mkdir(const char *, int);
|
||||
extern int rb_w32_rmdir(const char *);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче