mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-11-21 11:51:16 +00:00
more work to make Keith happy
SCCS-file: localtime.c SCCS-SID: 4.58
This commit is contained in:
committed by
Paul Eggert
parent
ac146a3f9c
commit
404c356d2f
39
localtime.c
39
localtime.c
@ -817,6 +817,27 @@ struct state * const sp;
|
|||||||
(void) tzparse(GMT, sp, TRUE);
|
(void) tzparse(GMT, sp, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef STD_INSPIRED
|
||||||
|
static
|
||||||
|
#endif /* !defined STD_INSPIRED */
|
||||||
|
void
|
||||||
|
tzsetwall()
|
||||||
|
{
|
||||||
|
lcl_is_set = TRUE;
|
||||||
|
#ifdef ALL_STATE
|
||||||
|
if (lclptr == NULL) {
|
||||||
|
lclptr = (struct state *) malloc(sizeof *lclptr);
|
||||||
|
if (lclptr == NULL) {
|
||||||
|
settzname(); /* all we can do */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif /* defined ALL_STATE */
|
||||||
|
if (tzload((char *) NULL, lclptr) != 0)
|
||||||
|
gmtload(lclptr);
|
||||||
|
settzname();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
tzset()
|
tzset()
|
||||||
{
|
{
|
||||||
@ -852,24 +873,6 @@ tzset()
|
|||||||
settzname();
|
settzname();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
tzsetwall()
|
|
||||||
{
|
|
||||||
lcl_is_set = TRUE;
|
|
||||||
#ifdef ALL_STATE
|
|
||||||
if (lclptr == NULL) {
|
|
||||||
lclptr = (struct state *) malloc(sizeof *lclptr);
|
|
||||||
if (lclptr == NULL) {
|
|
||||||
settzname(); /* all we can do */
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif /* defined ALL_STATE */
|
|
||||||
if (tzload((char *) NULL, lclptr) != 0)
|
|
||||||
gmtload(lclptr);
|
|
||||||
settzname();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The easy way to behave "as if no library function calls" localtime
|
** The easy way to behave "as if no library function calls" localtime
|
||||||
** is to not call it--so we drop its guts into "localsub", which can be
|
** is to not call it--so we drop its guts into "localsub", which can be
|
||||||
|
|||||||
Reference in New Issue
Block a user