summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Stop a compiler warning.dkf2004-05-181-1/+2
|
* Tests of limit-exceeded callbacks and make sure that those callbacks can removedkf2004-05-181-3/+6
| | | | the limits if they see fit (as well as extending them).
* * generic/tclExecute.c (TclExecuteByteCode): added comments toMiguel Sofer2004-05-181-21/+56
| | | | classify the variables according to their use in TEBC.
* Improved TIP#143 tests and now track the number of bytecoded commands better.dkf2004-05-171-2/+3
|
* (FIXED PATCH)Miguel Sofer2004-05-171-12/+12
| | | | | * generic/tclExecute.c (TclExecuteByteCode): remove one level of indirection for compiledLocals addressing.
* oops ... reverting last (buggy) commitMiguel Sofer2004-05-171-10/+12
|
* * generic/tclExecute.c (TclExecuteByteCode): remove one level ofMiguel Sofer2004-05-171-12/+10
| | | | indirection for compiledLocals addressing.
* * generic/tclExecute.c (INST_CALL_FUNC1): bugfix; restoredMiguel Sofer2004-05-161-1/+3
| | | | | (DE)CACHE_STACK_INFO pair around the call - the user defined math function could cause a recursive call to TEBC.
* * generic/tclBasic.c (Tcl_DeleteInterp):Miguel Sofer2004-05-162-4/+12
| | | | | | * generic/tclExecute.c (INST_START_CMD): interp deletion now modifies the compileEpoch, eliminating the need for the check for interp deletion in INST_START_CMD.
* * generic/tclCompile.h:Miguel Sofer2004-05-163-198/+154
| | | | | | | | | | | * generic/tclCompile.c: * generic/tclExecute.c: changed implementation of {expand}, last chance while in alpha as ... ***POTENTIAL INCOMPATIBILITY*** Scripts precompiled with ProComp under previous tcl8.5a versions may malfunction due to changed instruction numbers for INST_LIST_INDEX_IMM, INST_LIST_RANGE_IMM and INST_START_CMD.
* 2004-05-14 Kevin B. Kenny <kennykb@acm.org> Kevin B Kenny2004-05-145-24/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * generic/tclExecute.h:Miguel Sofer2004-05-142-252/+76
| | | | | | | * generic/tclCompile.h: the math functions receive a pointer to top of the stack (tosPtr) instead of the execution environment (eePtr). First step towards a change in the execution stack management - it is now only used within TEBC.
* Very minor updates to comments/whitespacedkf2004-05-133-4/+6
|
* Regendkf2004-05-132-2/+184
|
* TIP#143 implementation; still needs docs and more tests...dkf2004-05-1311-56/+1286
|
* TIP#129 implementation. Probably also much more breakage in the test suite toodkf2004-05-131-132/+358
|
* Optimisations for INST_START_CMD [Bug 926164].Miguel Sofer2004-05-122-38/+55
| | | | | | | | | * generic/tclCompile.c (TclCompileScript): avoid emitting INST_START_CMD as the first instruction in a bytecoded Tcl_Obj. It is not needed, as the checks are done before calling TEBC. * generic/tclExecute.c (TclExecuteByteCode): runtime peephole optimisation: check at INST_POP if the next instruction is INST_START_CMD, in which case we fall through.
* fix to some compiler warningsvincentdarley2004-05-082-4/+8
|
* * generic/tclEncoding.c:rmax2004-05-071-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).
* vfs glob root volume fixvincentdarley2004-05-073-15/+85
|
* * generic/tclInt.h:Miguel Sofer2004-05-062-52/+46
| | | | | | | | | * generic/tclObj.c (TclFreeObj): made TclFreeObj use the new macro TclFreeObjMacro(), so that the allocation and freeing of Tcl_Obj is defined in a single spot (the macros in tclInt.h), with the exception of the TCL_MEM_DEBUG case. The #ifdef logic for the corresponding macros has been reformulated to make it clearer.
* (TclFinalizeEncodingSubsystem): FreeEncoding(systemEncoding); moved todavygrvy2004-05-051-2/+2
| | | | | before the hash table itereation as it was causing a double free attempt under some conditions.
* * generic/tclAlloc.c: Make sure Tclp*Alloc* routines getdgp2004-05-043-7/+7
| | | | | * generic/tclInt.h: declared in the TCL_MEM_DEBUG and * generic/tclThreadAlloc.c: TCL_THREADS configuration. [Bug 947564]
* Remove accidental check-in of TIP#143 code. D'oh!dkf2004-05-041-7/+1
|
* Suppress a signed-ness warning.dkf2004-05-041-4/+9
|
* * generic/tclProc.c (TclCreateProc): comments corrected.Miguel Sofer2004-05-041-22/+12
|
* slight improvement to last commitMiguel Sofer2004-05-041-7/+7
|
* * generic/tclCompile.c (TclCompileScript): setting the compilationMiguel Sofer2004-05-041-7/+7
| | | | namespace outside of the loop.
* * generic/tclCompile.c:Miguel Sofer2004-05-032-23/+26
| | | | | | * generic/tclInt.h: reverted fix for [Bug 926445] of 2004-04-02, restoring TCL_ALIGN to the header file. Todd Helfter reported that the macro is required by tbcload.
* * 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/tclInt.h: Replaced Kevin Kenny's temporarydgp2004-04-302-10/+5
| | | | | * generic/tclThreadAlloc.c: fix for Bug 945447 with a cleaner, more permanent replacement.
* * generic/tclThreadAlloc.c: Added a temporary (or so I hope!) Kevin B Kenny2004-04-301-2/+4
| | | | | inclusion of "tclWinInt.h" to avoid problems when compiling on Win32-VC++ with --enable-threads. [Bug 945447]
* * doc/global.n:Miguel Sofer2004-04-281-1/+25
| | | | | | | | * doc/upvar.n: * generic/tclVar.c (ObjMakeUpvar): * tests/upvar.test (upvar-8.11): * tests/var.test (var-3.11): Avoid creation of unusable variables: [Bug 600812] [TIP 184].
* * generic/tcl.h: Removed obsolete declarations and #include's.dgp2004-04-252-9/+2
| | | | * generic/tclInt.h: [Bugs 926459, 926486]
* * generic/tclPort.h:das2004-04-241-3/+3
| | | | | | | | | * macosx/Makefile: * unix/Makefile.in: followup on tcl header reform [FR 922727]: removed use of relative #include paths in tclPort.h to allow installation of private headers outside of tcl source tree; added 'unix' dir to compiler header search path; add newly required tcl private headers to Tcl.framework on Mac OSX.
* * 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.
* fix to two filesystem bugs: more consistent file separator proc and correct ↵vincentdarley2004-04-232-6/+21
| | | | Tcl_FSJoinPath return values
* * generic/tclInt.h:davygrvy2004-04-233-7/+8
| | | | | | | | | * 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.
* TclSetLibraryPath's use of caching the stringrep of the pathPtr object todavygrvy2004-04-231-3/+15
| | | | | 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.
* Added FreeEncoding(systemEncoding) in TclFinalizeEncodingSubsystemdavygrvy2004-04-201-1/+2
| | | | because its ref count was incremented in TclInitEncodingSubsystem.
* Corrected "short circuit" conversion of int to double. Reported by Kevin B Kenny2004-04-191-1/+2
| | | | Jeff Hobbs on the Tcl'ers Chat.
* Fix minor fault in [clock clicks] error message.dkf2004-04-151-2/+2
|
* * win/tclWinInit.c (TclpSetInitialEncodings): note that WIN32_CEhobbs2004-04-072-25/+39
| | | | | | | | | | is also a unicode platform. * generic/tclEncoding.c (TclFindEncodings, Tcl_FindExecutable): * generic/tclInt.h: 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]
* fix to comment (bug 931148)vincentdarley2004-04-071-4/+4
|
* Patch 922727 committed. Implements three changes:dgp2004-04-061-20/+0
| | | | | | | | | | | | | | | | | | | | | | | * 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):
* Patch 922727 committed. Implements three changes:dgp2004-04-0647-109/+59
| | | | | | | | | | | | | | | | | | | | | | | * 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):
* * generic/tclCompile.c:Miguel Sofer2004-04-022-21/+23
| | | | | * generic/tclInt.h: removed the macro TCL_ALIGN() from tclInt.h, replaced by the static macro ALIGN() in tclCompile.c [Bug 926445]
* * generic/tclCompile.h: removed redundant #ifdef _TCLINTMiguel Sofer2004-04-021-3/+1
| | | | [Bug 928415], reported by tauvan.
* * generic/tclInt.h: Removed obsolete tclBlockTime* declarations.dgp2004-04-011-3/+1
| | | | [Bug 926454]
* cross-filesystem boundary glob fixvincentdarley2004-04-011-2/+19
|