1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ChangeLog: tabify.

* ext/etc/etc.c: add real prototype to getenv().
* win32/win32.h: add arguments to definitions of functions if possible.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2003-07-29 03:17:13 +00:00
parent b221254f6f
commit 49c85058af
3 changed files with 65 additions and 61 deletions

View file

@ -1,12 +1,18 @@
Tue Jul 29 12:15:37 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/etc/etc.c: add real prototype to getenv().
* win32/win32.h: add arguments to definitions of functions if possible.
Mon Jul 28 19:22:08 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net> Mon Jul 28 19:22:08 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net>
* ext/syck/syck.h: Added 'syck' yacc prefixes. * ext/syck/syck.h: Added 'syck' yacc prefixes.
* ext/syck/gram.c: ditto. * ext/syck/gram.c: ditto.
* ext/syck/token.c: ditto. * ext/syck/token.c: ditto.
* ext/syck: Added ruby.h reference to source files. * ext/syck: Added ruby.h reference to source files.
Tue Jul 29 03:53:28 2003 GOTOU Yuuzou <gotoyuzo@notwork.org> Tue Jul 29 03:53:28 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>

View file

@ -25,7 +25,7 @@
static VALUE sPasswd, sGroup; static VALUE sPasswd, sGroup;
char *getenv(); char *getenv _((const char *));
char *getlogin(); char *getlogin();
static VALUE static VALUE

View file

@ -93,35 +93,32 @@ extern "C++" {
#define fputchar(_c) putchar(_c) #define fputchar(_c) putchar(_c)
#define utime(_p, _t) rb_w32_utime(_p, _t) #define utime(_p, _t) rb_w32_utime(_p, _t)
#define strcasecmp stricmp #define strcasecmp(s1, s2) stricmp(s1, s2)
#define strncasecmp strnicmp #define strncasecmp(s1, s2, n) strnicmp(s1, s2, n)
#ifdef __BORLANDC__
#define _open _sopen
#endif
#define close rb_w32_close #define close(h) rb_w32_close(h)
#define fclose rb_w32_fclose #define fclose(f) rb_w32_fclose(f)
#define getpid rb_w32_getpid #define getpid() rb_w32_getpid()
#define sleep(x) rb_w32_sleep((x)*1000) #define sleep(x) rb_w32_sleep((x)*1000)
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#define creat _creat #define creat(p, m) _creat(p, m)
#define eof _eof #define eof() _eof()
#define filelength _filelength #define filelength(h) _filelength(h)
#define locking _locking #define mktemp(t) _mktemp(t)
#define mktemp _mktemp #define perror(s) _perror(s)
#define perror _perror #define read(h, b, l) _read(h, b, l)
#define read _read #define tell(h) _tell(h)
#define sopen _sopen #define umask(m) _umask(m)
#define tell _tell #define unlink(p) _unlink(p)
#define umask _umask #define write(h, b, l) _write(h, b, l)
#define unlink _unlink #define _open _sopen
#define write _write #define sopen _sopen
#endif #endif
#define vsnprintf _vsnprintf #define vsnprintf _vsnprintf
#define snprintf _snprintf #define snprintf _snprintf
#define fsync _commit #define fsync(h) _commit(h)
#undef stat #undef stat
#define stat(path,st) rb_w32_stat(path,st) #define stat(path,st) rb_w32_stat(path,st)
#ifdef __MINGW32__ #ifdef __MINGW32__
struct timezone { struct timezone {
@ -280,144 +277,144 @@ extern char *rb_w32_strerror(int);
#ifdef accept #ifdef accept
#undef accept #undef accept
#endif #endif
#define accept rb_w32_accept #define accept(s, a, l) rb_w32_accept(s, a, l)
#ifdef bind #ifdef bind
#undef bind #undef bind
#endif #endif
#define bind rb_w32_bind #define bind(s, a, l) rb_w32_bind(s, a, l)
#ifdef connect #ifdef connect
#undef connect #undef connect
#endif #endif
#define connect rb_w32_connect #define connect(s, a, l) rb_w32_connect(s, a, l)
#undef FD_SET #undef FD_SET
#define FD_SET rb_w32_fdset #define FD_SET(f, s) rb_w32_fdset(f, s)
#undef FD_CLR #undef FD_CLR
#define FD_CLR rb_w32_fdclr #define FD_CLR(f, s) rb_w32_fdclr(f, s)
#undef FD_ISSET #undef FD_ISSET
#define FD_ISSET rb_w32_fdisset #define FD_ISSET(f, s) rb_w32_fdisset(f, s)
#undef select #undef select
#define select rb_w32_select #define select(n, r, w, e, t) rb_w32_select(n, r, w, e, t)
#ifdef getpeername #ifdef getpeername
#undef getpeername #undef getpeername
#endif #endif
#define getpeername rb_w32_getpeername #define getpeername(s, a, l) rb_w32_getpeername(s, a, l)
#ifdef getsockname #ifdef getsockname
#undef getsockname #undef getsockname
#endif #endif
#define getsockname rb_w32_getsockname #define getsockname(s, a, l) rb_w32_getsockname(s, a, l)
#ifdef getsockopt #ifdef getsockopt
#undef getsockopt #undef getsockopt
#endif #endif
#define getsockopt rb_w32_getsockopt #define getsockopt(s, v, n, o, l) rb_w32_getsockopt(s, v, n, o, l)
#ifdef ioctlsocket #ifdef ioctlsocket
#undef ioctlsocket #undef ioctlsocket
#endif #endif
#define ioctlsocket rb_w32_ioctlsocket #define ioctlsocket(s, c, a) rb_w32_ioctlsocket(s, c, a)
#ifdef listen #ifdef listen
#undef listen #undef listen
#endif #endif
#define listen rb_w32_listen #define listen(s, b) rb_w32_listen(s, b)
#ifdef recv #ifdef recv
#undef recv #undef recv
#endif #endif
#define recv rb_w32_recv #define recv(s, b, l, f) rb_w32_recv(s, b, l, f)
#ifdef recvfrom #ifdef recvfrom
#undef recvfrom #undef recvfrom
#endif #endif
#define recvfrom rb_w32_recvfrom #define recvfrom(s, b, l, f, fr, frl) rb_w32_recvfrom(s, b, l, f, fr, frl)
#ifdef send #ifdef send
#undef send #undef send
#endif #endif
#define send rb_w32_send #define send(s, b, l, f) rb_w32_send(s, b, l, f)
#ifdef sendto #ifdef sendto
#undef sendto #undef sendto
#endif #endif
#define sendto rb_w32_sendto #define sendto(s, b, l, f, t, tl) rb_w32_sendto(s, b, l, f, t, tl)
#ifdef setsockopt #ifdef setsockopt
#undef setsockopt #undef setsockopt
#endif #endif
#define setsockopt rb_w32_setsockopt #define setsockopt(s, v, n, o, l) rb_w32_setsockopt(s, v, n, o, l)
#ifdef shutdown #ifdef shutdown
#undef shutdown #undef shutdown
#endif #endif
#define shutdown rb_w32_shutdown #define shutdown(s, h) rb_w32_shutdown(s, h)
#ifdef socket #ifdef socket
#undef socket #undef socket
#endif #endif
#define socket rb_w32_socket #define socket(s, t, p) rb_w32_socket(s, t, p)
#ifdef gethostbyaddr #ifdef gethostbyaddr
#undef gethostbyaddr #undef gethostbyaddr
#endif #endif
#define gethostbyaddr rb_w32_gethostbyaddr #define gethostbyaddr(a, l, t) rb_w32_gethostbyaddr(a, l, t)
#ifdef gethostbyname #ifdef gethostbyname
#undef gethostbyname #undef gethostbyname
#endif #endif
#define gethostbyname rb_w32_gethostbyname #define gethostbyname(n) rb_w32_gethostbyname(n)
#ifdef gethostname #ifdef gethostname
#undef gethostname #undef gethostname
#endif #endif
#define gethostname rb_w32_gethostname #define gethostname(n, l) rb_w32_gethostname(n, l)
#ifdef getprotobyname #ifdef getprotobyname
#undef getprotobyname #undef getprotobyname
#endif #endif
#define getprotobyname rb_w32_getprotobyname #define getprotobyname(n) rb_w32_getprotobyname(n)
#ifdef getprotobynumber #ifdef getprotobynumber
#undef getprotobynumber #undef getprotobynumber
#endif #endif
#define getprotobynumber rb_w32_getprotobynumber #define getprotobynumber(n) rb_w32_getprotobynumber(n)
#ifdef getservbyname #ifdef getservbyname
#undef getservbyname #undef getservbyname
#endif #endif
#define getservbyname rb_w32_getservbyname #define getservbyname(n, p) rb_w32_getservbyname(n, p)
#ifdef getservbyport #ifdef getservbyport
#undef getservbyport #undef getservbyport
#endif #endif
#define getservbyport rb_w32_getservbyport #define getservbyport(p, pr) rb_w32_getservbyport(p, pr)
#ifdef get_osfhandle #ifdef get_osfhandle
#undef get_osfhandle #undef get_osfhandle
#endif #endif
#define get_osfhandle rb_w32_get_osfhandle #define get_osfhandle(h) rb_w32_get_osfhandle(h)
#ifdef getcwd #ifdef getcwd
#undef getcwd #undef getcwd
#endif #endif
#define getcwd rb_w32_getcwd #define getcwd(b, s) rb_w32_getcwd(b, s)
#ifdef getenv #ifdef getenv
#undef getenv #undef getenv
#endif #endif
#define getenv rb_w32_getenv #define getenv(n) rb_w32_getenv(n)
#ifdef rename #ifdef rename
#undef rename #undef rename
#endif #endif
#define rename rb_w32_rename #define rename(o, n) rb_w32_rename(o, n)
struct tms { struct tms {
long tms_utime; long tms_utime;
@ -429,7 +426,8 @@ struct tms {
#ifdef times #ifdef times
#undef times #undef times
#endif #endif
#define times rb_w32_times #define times(t) rb_w32_times(t)
int rb_w32_times(struct tms *);
/* thread stuff */ /* thread stuff */
HANDLE GetCurrentThreadHandle(void); HANDLE GetCurrentThreadHandle(void);