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

* time.c (time_new_internal): add prototype to tell the compiler

arugments types.

* win32/win32.c (NtInitialize): need to set a handler for VC++8.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2006-02-24 02:22:33 +00:00
parent 8e5e386b7a
commit d23d055d47
3 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,10 @@
Fri Feb 24 11:19:58 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* time.c (time_new_internal): add prototype to tell the compiler
arugments types.
* win32/win32.c (NtInitialize): need to set a handler for VC++8.
Fri Feb 24 08:19:16 2006 NARUSE, Yui <naruse@ruby-lang.org>
* test.rb: Removed. Obsolete by test/nkf.

1
time.c
View file

@ -139,6 +139,7 @@ time_overflow_p(secp, usecp)
*usecp = usec;
}
static VALUE time_new_internal _((VALUE, time_t, time_t));
static VALUE
time_new_internal(klass, sec, usec)
VALUE klass;

View file

@ -354,6 +354,13 @@ flock(int fd, int oper)
(DWORD)-1);
}
#if _MSC_VER >= 1400
static void invalid_parameter(const wchar_t *expr, const wchar_t *func, const wchar_t *file, unsigned int line, uintptr_t dummy)
{
// nothing to do
}
#endif
//
// Initialization stuff
//
@ -364,6 +371,10 @@ NtInitialize(int *argc, char ***argv)
WORD version;
int ret;
#if _MSC_VER >= 1400
_set_invalid_parameter_handler(invalid_parameter);
#endif
//
// subvert cmd.exe's feeble attempt at command line parsing
//