| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
FossilOrigin-Name: 19a0a6a899f2e83e5c3001676d0900edd861fee2
|
|
|
| |
FossilOrigin-Name: 0c5cea4d810d972d3fc068b559c281718525451f
|
|
|
| |
FossilOrigin-Name: 1cc2336920c70c6b9f7825b88dec87fc223f2c4e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclDecls.h: the modified tcl.decls (TIP #233, see below).
* doc/GetTime.3: Implemented TIP #233, i.e. the
* generic/tcl.decls: 'Virtualization of Tcl's Sense of Time'.
* generic/tcl.h: Declared, implemented, and documented the
* generic/tclInt.h: specified new API functions. Moved the
* unix/tclUnixEvent.c: native (OS) access to time information
* unix/tclUnixNotfy.c: into standard handler functions. Inserted
* unix/tclUnixTime.c: hooks calling on the handlers where native
* win/tclWinNotify.c: access was done before, and where scaling
* win/tclWinTime.c: between domains (real/virtual) is required.
FossilOrigin-Name: 8e9949daa235dc47ab939c371f97bf348bbe486a
|
|
|
| |
FossilOrigin-Name: e64761cd12de4d157037d35fed3c2419b268fd98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
FossilOrigin-Name: 44753d7a62927a3ae318a223fb94a8f35b69bf08
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclInt.h: Reworked the Tcl header files into a clean
* unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h
* win/tclWinInt.h: and every C source file should #include
* win/tclWinPort.h: at most one of those files to satisfy its
declaration needs. tclWinInt.h and tclWinPort.h also better organized
so that tclWinPort.h includes the Windows implementation of
cross-platform declarations, while tclWinInt.h makes declarations that
are available on Windows only.
* generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h
* generic/tclMath.h (removed): header file. The internal Tcl
* macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a
* win/tcl.dsp: #include <math.h> directly,
and file external to Tcl needing libm should do the same.
* win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file.
* win/makefile.bc (TCLOBJS): It's a vestige from matherr() days
* win/makefile.vc (TCLOBJS): gone by.
* win/tcl.dsp:
* win/tclWinMtherr.c (removed):
FossilOrigin-Name: 2e5b18c85c944b46540edfdd6580648e32645e2b
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclInt.h: but caused warnings related to
* generic/tclInt.decls: strict aliasing with GCC 3.3.
* generic/tclClock.c:
* generic/tclDate.c:
* generic/tclGetDate.y:
* win/tclWinTime.c:
* unix/tclUnixTime.c:
FossilOrigin-Name: dab531a3378da8f028d4ca3a8657de7766acbf37
|
|
|
| |
FossilOrigin-Name: 38ad3535965c32f2b7ef31c6a0c3c06a04aeed09
|
|
|
| |
FossilOrigin-Name: 9236a51311fb24df6b7f57725756be6c32e346a4
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclClock.c: result in UTF-8 encoding, and removed
* mac/tclMacTime.c: the conversion from system encoding to
* unix/tclUnixTime.c: UTF-8 from [clock format]. Needed to
* win/tclWinTime.c: avoid double conversion of the timezone
name on Windows systems. [Bug 624408]
FossilOrigin-Name: 24ccf14ddd003100f1665ad07f1dd558714cbd81
|
|
|
|
|
| |
have file-scope.
FossilOrigin-Name: 86e27ff753182370088914b09b67faefe53a8d37
|
|
|
|
|
|
| |
* tests/clock.test: Bug #565880. ***POTENTIAL INCOMPATIBILITY***
FossilOrigin-Name: a6557623af609d16fa3e67720e438316fa52e6a4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* compat/strftime.c:
* generic/tclClock.c:
* generic/tclInt.decls:
* generic/tclIntDecls.h:
* unix/tclUnixTime.c: fix for Windows msvcrt mem leak caused by
using an env(TZ) setting trick for in clock format -gmt 1. This
also makes %s seem to work correctly with -gmt 1 as well as
making it a lot faster by avoid the env(TZ) hack. TclpStrftime
now takes useGMT as an arg. [Bug #559376]
FossilOrigin-Name: 4d47e1cec7caf94d2cdda340e5467982b96c322b
|
|
|
|
|
|
| |
This deprecates TclpGetTime in favor of new Tcl_GetTime.
FossilOrigin-Name: ad0e26f63b8c18f13f7c0131933099e11df86010
|
|
|
| |
FossilOrigin-Name: e984e525c236caeca8368879863adbfdfb1ca431
|
|
|
|
|
|
| |
minutes ago.
FossilOrigin-Name: b6db3ba81ccb81ec35536d9b0716163ef9a1b520
|
|
|
| |
FossilOrigin-Name: 436fdc174bef6e4cfd4f9166ccf7ad938f959342
|
|
|
|
|
|
| |
(Bugs #219136 and #232558)
FossilOrigin-Name: 4962ea9dd5cafaaa32a364b7e40b8b37b4474319
|
|
|
|
|
|
|
|
| |
* compat/strftime.c: New clock format format.
* generic/tclGetDate.y: New clock scan format.
FossilOrigin-Name: 53023d030d3ce288ed929ac8fad6c03646e458c3
|
|
|
| |
FossilOrigin-Name: a4cee78edc3a5c4654cbf4fb76845626b0849c0e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tcl.decls:
* generic/tclInt.decls:
* generic/tclDecls.h:
* generic/tclIntDecls.h:
* generic/tclUtf.c:
* compat/strftime.c:
* unix/tclUnixTime.c: Changed function declarations in
non-platform-specific APIs to use "unsigned long" instead of
"size_t", which may not be defined on certain compilers (rather
than include sys/types.h, which may not exist).
FossilOrigin-Name: 22b143003b180eaed3b7f8c9bad28df440ef6071
|
|
|
| |
FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
|
|
|
| |
FossilOrigin-Name: 19696933517612024e7dbcfee6e3c8d3b4e41772
|
|
|
| |
FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
|
|
FossilOrigin-Name: f86c34e38d2a946e0ed196001fd756c57f90791a
|