diff options
author | Kevin B Kenny <kennykb@acm.org> | 2004-05-14 21:41:04 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2004-05-14 21:41:04 (GMT) |
commit | 1f09368b39073bc30f3957f2f70911a722f5c781 (patch) | |
tree | c43bfd28868eb27530e825eb959a36371420aeb7 /generic/tclInt.decls | |
parent | b8fec065a49ccae81c772930a794083e9fb8fc10 (diff) | |
download | tcl-1f09368b39073bc30f3957f2f70911a722f5c781.zip tcl-1f09368b39073bc30f3957f2f70911a722f5c781.tar.gz tcl-1f09368b39073bc30f3957f2f70911a722f5c781.tar.bz2 |
2004-05-14 Kevin B. Kenny <kennykb@acm.org>
* generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime
* generic/tclIntDecls.h: from Unix-specific stubs to the generic
* generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs'
* generic/tclStubInit.c:
* unix/tclUnixPort.h:
* generic/tclClock.c: Changed a buggy 'GMT' timezone specification
to the correct 'GMT0'. [Bug #922848]
* unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to
unix/tclUnixTime.c where they belong.
* unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone,
ThreadSafeGMTime [removed],
ThreadSafeLocalTime [removed],
SetTZIfNecessary, CleanupMemory):
Restructured to make sure that the same mutex protects
all calls to localtime, gmtime, and tzset. Added a check
in front of those calls to make sure that the TZ env var
hasn't changed since the last call to tzset, and repeat
tzset if necessary. [Bug #942078] Removed a buggy test
of the Daylight Saving Time information in 'gettimeofday'
in favor of applying 'localtime' to a known value.
[Bug #922848]
* tests/clock.test (clock-3.14): Added test to make sure that
changes to $env(TZ) take effect immediately.
* win/tclWinTime.c (TclpLocaltime, TclpGmtime):
Added porting layer for 'localtime' and 'gmtime' calls.
Diffstat (limited to 'generic/tclInt.decls')
-rw-r--r-- | generic/tclInt.decls | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/generic/tclInt.decls b/generic/tclInt.decls index 8a68f70..927e65c 100644 --- a/generic/tclInt.decls +++ b/generic/tclInt.decls @@ -12,7 +12,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: tclInt.decls,v 1.59 2003/02/18 02:25:45 hobbs Exp $ +# RCS: @(#) $Id: tclInt.decls,v 1.59.2.1 2004/05/14 21:41:11 kennykb Exp $ library tcl @@ -697,6 +697,15 @@ declare 173 generic { CONST Tcl_UniChar *pattern, int ptnLen, int nocase) } +# TclpGmtime and TclpLocaltime promoted to the generic interface from unix + +declare 182 generic { + struct tm *TclpLocaltime(CONST time_t *clock) +} +declare 183 generic { + struct tm *TclpGmtime(CONST time_t *clock) +} + ############################################################################## # Define the platform specific internal Tcl interface. These functions are @@ -977,12 +986,15 @@ declare 10 unix { Tcl_DirEntry * TclpReaddir(DIR * dir) } +# Slots 11 and 12 are forwarders for functions that were promoted to +# generic Stubs + declare 11 unix { - struct tm * TclpLocaltime(time_t * clock) + struct tm * TclpLocaltime_unix(CONST time_t * clock) } declare 12 unix { - struct tm * TclpGmtime(time_t * clock) + struct tm * TclpGmtime_unix(CONST time_t * clock) } declare 13 unix { |