Added implementation of _dstbias and __p__dstbias.

Added macros for _dstbias, _daylight, _timezone and _tzname.
This commit is contained in:
Alexandre Julliard 2005-09-27 10:55:50 +00:00
parent b09582a890
commit 6b2a9b3022
3 changed files with 23 additions and 3 deletions

View File

@ -110,7 +110,7 @@
@ cdecl __p__amblksiz()
@ cdecl __p__commode()
@ cdecl __p__daylight() MSVCRT___p__daylight
@ stub __p__dstbias #()
@ cdecl __p__dstbias()
@ cdecl __p__environ()
@ stub __p__fileinfo #()
@ cdecl __p__fmode()
@ -194,7 +194,7 @@
@ extern _ctype MSVCRT__ctype
@ cdecl _cwait(ptr long long)
@ extern _daylight MSVCRT___daylight
# extern _dstbias
@ extern _dstbias MSVCRT__dstbias
@ cdecl _dup (long)
@ cdecl _dup2 (long long)
@ cdecl _ecvt(double long ptr ptr)

View File

@ -310,6 +310,19 @@ int *MSVCRT___p__daylight(void)
return &MSVCRT___daylight;
}
/*********************************************************************
* _dstbias (MSVCRT.@)
*/
int MSVCRT__dstbias = 0;
/*********************************************************************
* __p_dstbias (MSVCRT.@)
*/
int *__p__dstbias(void)
{
return &MSVCRT__dstbias;
}
/*********************************************************************
* _timezone (MSVCRT.@)
*/

View File

@ -76,8 +76,15 @@ struct tm {
extern "C" {
#endif
/* FIXME: Must do something for _daylight, _dstbias, _timezone, _tzname */
#define _daylight (*__p__daylight())
#define _dstbias (*__p__dstbias())
#define _timezone (*__p__timezone())
#define _tzname (__p__tzname())
int *__p__daylight(void);
long *__p__dstbias(void);
long *__p__timezone(void);
char **__p__tzname(void);
unsigned _getsystime(struct tm*);
unsigned _setsystime(struct tm*,unsigned);