diff options
author | Roland McGrath <roland@gnu.org> | 1993-06-25 22:59:18 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1993-06-25 22:59:18 +0000 |
commit | e80ef952acdfbcac17359f0ba22e3ed754aca3dc (patch) | |
tree | 397a0e8d4773d0f641872a504a4d49e448bbebf9 /time | |
parent | 949d43a7f7a540aa3198f20d370345162b6fd95f (diff) |
Formerly ../time/__tzset.c.~22~
Diffstat (limited to 'time')
-rw-r--r-- | time/tzset.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/time/tzset.c b/time/tzset.c index a5dbf72c90..b94ac4724d 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -342,6 +342,20 @@ DEFUN_VOID(__tzset) __tzset_run = 1; } +/* Maximum length of a timezone name. __tz_compute keeps this up to date + (never decreasing it) when ! __use_tzfile. + tzfile.c keeps it up to date when __use_tzfile. */ +long int __tzname_cur_max; + +long int +DEFUN_VOID(__tzname_max) +{ + if (! __tzset_run) + __tzset (); + + return __tzname_cur_max; +} + /* Figure out the exact time (as a time_t) in YEAR when the change described by RULE will occur and put it in RULE->change, saving YEAR in RULE->computed_for. @@ -455,17 +469,3 @@ DEFUN(__tz_compute, (timer, tm), return 1; } - -/* Maximum length of a timezone name. __tz_compute keeps this up to date - (never decreasing it) when ! __use_tzfile. - tzfile.c keeps it up to date when __use_tzfile. */ -long int __tzname_cur_max; - -long int -DEFUN_VOID(__tzname_max) -{ - if (! __tzset_run) - __tzset (); - - return __tzname_cur_max; -} |