summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Silence compiler warningsdgp2004-06-081-2/+3
|
* * generic/tclCompile.c: handle warning [Bug 969066]Miguel Sofer2004-06-081-2/+6
|
* * generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw Kevin B Kenny2004-06-057-7231/+7249
| | | | | | | | | | | | | | | | | build works again. * generic/tclInt.decls: Changes to the tests for * generic/tclIntPlatDecls.h: clock frequency in Tcl_WinTime * generic/tclStubInit.c: so that any clock frequency * tests/platform.test (platform-1.3): is accepted provided that * win/tclWin32Dll.c (TclWinCPUID): all CPU's in the system share * win/tclWinTest.c (TestwincpuidCmd): a common chip, and hence, * win/tclWinTime.c (Tcl_GetTime): presumably, a common clock. This change necessitated a small burst of assembly code to read CPU ID information, which was added as TclWinCPUID in the internal Stubs. To test this code in the common case of a single-processor machine, a 'testwincpuid' command was added to tclWinTest.c, and a test case in platform.test. Thanks to Jeff Godfrey and Richard Suchenwirth for reporting this bug. [Bug #976722]
* * generic/tclEncoding.c:rmax2004-05-271-5/+131
| | | | | | * tests/encoding.test: added support and tests for translating embedded null characters between real nullbytes and the internal representation on input/output (Bug #949905).
* * generic/tclExecute.c (VerifyExprObjType): use GET_WIDE_OR_INT tohobbs2004-05-251-2/+3
| | | | | | properly have tclIntType used for smaller values. This corrects TclX bug 896727 and any other 3rd party extension that created math functions but was not yet WIDE_INT aware in them.
* * generic/tclVar.c (TclObjUnsetVar2): backported fix [Bug 735335]Miguel Sofer2004-05-221-9/+26
| | | | | | | | and new (in tcl8.4) exteriorisations of [Bug 736729] due to the use of tclNsVarNameType obj types. The consequences of [Bug 736729] should be the same as in tcl8.3 and previous versions. The use of tclNsVarNameType objs is still disabled, pending a decision by the release manager.
* Removed one bogus clearance of the has-more flag. Erroneously keptandreas_kupries2004-05-191-3/+1
| | | | after shifting the code.
* * tclIO.c: Fixed [SF Tcl Bug 943274]. This is the same problem asandreas_kupries2004-05-192-7/+108
| | | | | | | | | | | | | * tclIO.h: [SF Tcl Bug 462317], see ChangeLog entry 2001-09-26. The fix done at that time is incomplete. It is possible to get around it if the actual read operation is defered and not executed in the event handler itself. Instead of tracking if we are in an read caused by a synthesized fileevent we now track if the OS has delivered a true event = actual data and bypass the driver if a read finds that there is no actual data waiting. The flag is cleared by a short or full read.
* commit genstubs generated files with unix line endingsdgp2004-05-175-7227/+7227
|
* * generic/tclInt.decls: Restored TclpTime_t kludge to all Kevin B Kenny2004-05-176-7232/+7232
| | | | | | | * generic/tclIntPlatDecls.h: places where it appeared before the * unix/tclUnixPort.h changes of 14 May, because use of * unix/tclUnixTime.h native time_t in its place requires * win/tclWinTime.h: the 8.5 header reforms. [Bug #955146]
* 2004-05-14 Kevin B. Kenny <kennykb@acm.org> Kevin B Kenny2004-05-145-20/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* (TclSetLibraryPath): Suppress a warning [from DKF]davygrvy2004-05-061-3/+3
|
* * generic/tclEncoding.c: Added FreeEncoding(systemEncoding) indavygrvy2004-05-061-1/+2
| | | | | TclFinalizeEncodingSubsystem because its ref count was incremented in TclInitEncodingSubsystem.
* * generic/tclInt.h:davygrvy2004-05-062-5/+6
| | | | | | | | | * generic/tclThread.c: * generic/tclEvent.c: * unix/tclUnixThrd.c: * win/tclWinThrd.c: Provisions made so masterLock, initLock, allocLock and joinLock mutexes can be recovered during Tcl_Finalize.
* * generic/tclEvent.c: TclSetLibraryPath's use of caching thedavygrvy2004-05-061-4/+16
| | | | | | | | | | | | | | stringrep of the pathPtr object to TclGetLibraryPath called from another thread was ineffective if the original's stringrep had been invalidated as what happens when it gets muted to a list. * generic/tclInt.h: * generic/tclThread.c: * generic/tclEvent.c: * unix/tclUnixThrd.c: * win/tclWinThrd.c: Provisions made so masterLock, initLock, allocLock and joinLock mutexes can be recovered during Tcl_Finalize.
* * generic/tclIOUtil.c (Tcl_FSChdir): Work-around crash conditionhobbs2004-05-041-1/+48
| | | | | * tests/winFCmd.test (winFCmd-16.12): triggered when $HOME is volumerelative (ie 'C:').
* * generic/tclProc.c (TclObjInvokeProc):Miguel Sofer2004-05-021-4/+22
| | | | | * tests/proc.test (proc-3.6): fix for bad quoting of multi-word proc names in error messages [Bug 942757]
* * generic/tclIO.c (Tcl_SetChannelOption): Fixed [SF Tcl Bugandreas_kupries2004-04-231-1/+10
| | | | | 930851]. When changing the eofchar we have to zap the related flags to prevent them from prematurely aborting the next read.
* Backport of fixes to make HashObjKey hash the whole object...dkf2004-03-301-18/+9
|
* * generic/tclInt.h:hobbs2004-03-292-22/+36
| | | | | | | | | * generic/tclEncoding.c (TclFindEncodings, Tcl_FindExecutable): * mac/tclMacInit.c (TclpInitLibraryPath): Correct handling of UTF * unix/tclUnixInit.c (TclpInitLibraryPath): data that is actually * win/tclWinFile.c (TclpFindExecutable): "clean", allowing the * win/tclWinInit.c (TclpInitLibraryPath): loading of Tcl from paths that contain multi-byte chars on Windows [Bug 920667]
* * generic/tclCompile.c (TclCompileScript): corrected possibleMiguel Sofer2004-03-291-3/+4
| | | | | segfault when a compilation returns TCL_OUTLINE_COMPILE after having grown the compile environment [Bug 925121].
* * generic/tclCompile.c (TclCompileScript):Miguel Sofer2004-03-151-4/+6
| | | | | | | | | * tests/compile.test (compile-3.5): corrected wrong test and behaviour in the earlier fix for [Bug 705406]; Don Porter reported this as [Bug 735055], and provided the solution. Fixed in HEAD on 2003-05-09, but backport to 8-4-branch was wrongly omitted; re-reported as [Bug 916795] by Roy Terry, diagnosed by dgp.
* glob -path fix for near filesystem rootvincentdarley2004-03-091-1/+11
|
* * generic/tclCmdMZ.c (TclCheckInterpTraces): The TIP 62dgp2004-03-012-3/+15
| | | | | | | | * generic/tclTest.c (TestcmdtraceCmd): implementation introduced a * tests/basic.test (basic-39.10): bug by testing the CallFrame level instead of the iPtr->numLevels level when deciding what traces created by Tcl_Create(Obj)Trace to call. Added test to expose the error, and made fix. [Request 462580]
* stop compiler warningdgp2004-02-201-2/+2
|
* reverted file norm .. fixes because 8.5 had much more extensive changes ↵hobbs2004-02-181-222/+85
| | | | across the board
* * generic/tclIOUtil.c: backport of rewrite of generic filehobbs2004-02-181-85/+222
| | | | | normalization code to cope with links followed by '..'. [Bug 849514], and parts of [859251]
* * generic/tclCmdMZ.c (TclTraceExecutionObjCmd)hobbs2004-02-171-6/+4
| | | | (TclTraceCommandObjCmd): fix possible mem leak in trace info.
* update patchlevel to 8.4.6hobbs2004-02-131-3/+3
|
* * generic/tclIO.c (Tcl_Ungets): fixes improper filling of the channel buffer.davygrvy2004-02-021-3/+2
| | | | [Bug 405995]
* * generic/tclFileName.c (Tcl_GlobObjCmd): Latest changes todgp2004-01-131-24/+16
| | | | | | | management of the interp result by Tcl_GetIndexFromObj() exposed improper interp result management in the [glob] command procedure. Corrected by adopting the Tcl_SetObjResult(Tcl_NewStringObj) pattern. This stopped a segfault in test filename-11.36.
* Fix shared object panics. [Bug 875395]dkf2004-01-131-3/+6
|
* vfs code tclfinalizefilesystem fixvincentdarley2004-01-091-3/+3
|
* * generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bugdas2003-12-171-2/+4
| | | | when numeric scan-value cache contains NULL value.
* Merged fixes for Tcl Bug #839519 and Tcl Bug #861515.vasiljevic2003-12-171-11/+14
| | | | Those are already applied to the head.
* fix to 'file normalize ~nobody' crashvincentdarley2003-12-121-1/+4
|
* * generic/tcl.h: Bumped patch level to 8.4.5.1 to distinguishdgp2003-12-031-3/+3
| | | | | | | | | * unix/configure.in: CVS snapshots from 8.4.5 release. * unix/tcl.spec: * win/configure.in: * unix/configure: autoconf (2.13) * win/configure:
* * README: Bumped patch level to 8.4.6 to distinguishdgp2003-12-021-3/+3
| | | | | | | | | | | | * generic/tcl.h: CVS snapshots from the 8.4.5 release. * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf (2.13) * win/configure:
* Stop losing references when variables are repeated in [binary scan]. [851747]dkf2003-12-021-40/+71
|
* * generic/tclVar.c: fix flag bit collision betweenMiguel Sofer2003-11-201-2/+2
| | | | LOOKUP_FOR_UPVAR and TCL_PARSE_PART1 (deprecated) [Bug 835020]
* fix to 'cd' infinite recursion bug on Windowsvincentdarley2003-11-201-5/+12
|
* * generic/regcomp.c: Backported regexp bug fixes and tests. Thanksdgp2003-11-172-6/+28
| | | | | * generic/tclTest.c: to Pavel Goran and Vince Darley. * tests/reg.test: [Bugs 230589, 504785, 505048, 703709, 840258]
* * tests/unixInit.test (unixInit-2.10): mark as knownBughobbs2003-11-061-13/+7
| | | | | | * generic/tclEncoding.c (TclFindEncodings): revert patch from 2003-11-05. It wasn't valid in the sensitive startup init phase and broke Windows from working at all.
* * generic/tclEncoding.c (TclFindEncodings): Normalize the pathdgp2003-11-051-5/+9
| | | | | | of the executable before passing to TclpInitLibraryPath() to avoid buggy handling of paths containing "..". [Bug 832657] * tests/unixInit.test (unixInit-2.10): New test for fixed bug.
* fix testsuite backport errorvincentdarley2003-10-311-2/+2
|
* * generic/tclIOUtil.c (FsListMounts, FsAddMountsToGlobResult): Newandreas_kupries2003-10-223-9/+166
| | | | | | | | | | | functions. See below for context. (Tcl_FSMatchInDirectory): Modified to call on the new functions (above) to handle the mountpoints in the glob'bed directory correctly. Part of the patch by Vincent Darly to solve the [Bug 800106] for the 8.4.x series. * generic/tcl.h (TCL_GLOB_TYPE_MOUNT): New definition. Part of the patch by Vincent Darly to solve [Bug 800106] for the 8.4.x series.
* Changed FILE_ to FCMD_ to prevent symbol/#def collisions. [Bug 822528]dkf2003-10-221-45/+45
|
* regsub fixvincentdarley2003-10-141-2/+13
|
* * generic/tclBasic.c: Save and restore the iPtr->flag bits thatdgp2003-10-081-1/+6
| | | | | | | control the state of errorCode and errorInfo management when calling "leave" execution traces, so that all error information of the traced command is still available whether traced or not. [Bug 760947] Thanks to Yahalom Emet.
* Made Tcl_NumUtfChars do the right thing with \u0000 when guessing the lengthdkf2003-10-082-7/+30
| | | | because of a negative 'length' parameter. [Bug 769812]