summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclIO.c (Tcl_SetChannelOption): Invalid settingsdavygrvy2004-06-011-3/+14
| | | | | | for -buffersize weren't being reported as errors and were blindly ignored. Now reports conversion errors to an int and checks ranges for validity. atoi() swapped for Tcl_GetInt().
* Limits documentation and style improvementsdkf2004-05-303-46/+496
| | | | Added C docs, cleaned up C code, added note on behaviour of limited master interps
* better (?) #ifdeferry for the last fixMiguel Sofer2004-05-272-2/+12
|
* * generic/tclExecute.c:Miguel Sofer2004-05-272-7/+9
| | | | | * generic/tclVar.c: using (ptrdiff_t) instead of (int) casting to correct compiler warnings [Bug 961657], reported by Bob Techentin.
* Made compiling with -Wstrict-prototypes -Wmissing-prototypes much cleaner.dkf2004-05-275-26/+36
| | | | Also added support for [FRQ 951168] but left that switched off by default.
* Prototype fix for [Bug 960410] that tries to move hash table cleanup somewheredkf2004-05-251-9/+12
| | | | more reliable.
* * generic/tclNamesp.c (Tcl_FindNamespaceVar):Miguel Sofer2004-05-252-17/+22
| | | | | | | | | | | | | | | | * tests/namespace.test (namespace-17.10-12): reverted commit of 2004-05-23 and removed the tests, as it interferes with the varname resolver and there are apps that break (AlphaTk). A fix will have to wait for Tcl9. * generic/tclVar.c: Caching of namespace variables disabled: no simple way was found to avoid interfering with the resolver's idea of variable existence. A cached varName may keep a variable's name in the namespace's hash table, which is the resolver's criterion for existence. * tests/namespace.c (namespace-17.10): testing for interference between varname caching and name resolver.
* Finish fixing comments for [Bug 848440]dkf2004-05-252-5/+6
|
* * 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.
* Fixed [Bug 959193] which is apparently a word-size issue.dkf2004-05-241-2/+2
|
* Fix in commentsMiguel Sofer2004-05-231-10/+7
|
* * generic/tclNamesp.c (Tcl_FindNamespaceVar): [Bug 959052] fixed,Miguel Sofer2004-05-232-18/+23
| | | | | | | insuring that no "zombie" variables are found. * generic/tclVar.c (TclLookupSimpleVar): comments re [Bug 736729] (predecessor of [Bug 959052]) removed. * tests/namespace.test: added tests 17.10-12
* * generic/tclVar.c (TclObjLookupVar, TclObjUnsetVar2): fix for newMiguel Sofer2004-05-221-12/+30
| | | | | | | | (in tcl8.4) exteriorisations of [Bug 736729] due to the use of tclNsVarNameType obj types. Reenabling the use of this objType ("VAR ref absolute" benchmark down to 66 ms, from 230). Added comments in TclLookupSimpleVar explaining my current understanding of [Bug 736729].
* * generic/tclVar.c: fix for [Bug 735335]. The use ofMiguel Sofer2004-05-221-21/+24
| | | | | tclNsVarNameType objs is still disabled, pending resolution of [Bug 736729].
* One more fix; this time it really does let this file build...dkf2004-05-211-9/+15
|
* Make TCL_COMPILE_DEBUG path through TEBC work...dkf2004-05-211-7/+7
|
* Variables should only ever be declarated at the start of a block...dkf2004-05-211-3/+3
|
* 2004-05-21 Miguel Sofer <msofer@users.sf.net>Miguel Sofer2004-05-211-1114/+1275
| | | | | | | | | | * generic/tclExecute.c (TclExecuteByteCode): reorganised TEBC automatic variables, defining them in tight blocks instead of at the function level. This has three purposes: - it simplifies the analysis of individual instructions - it is preliminary work to the non-recursive engine - it allows a better register allocation by the optimiser; under gcc3.3, this results in up to 10% runtime in some tests
* Delete limit callbacks properly when the interpreters involved are deleted.dkf2004-05-203-4/+91
|
* Enable a test of limiting tight loops.dkf2004-05-191-3/+3
|
* * tclIO.c: Fixed [SF Tcl Bug 943274]. This is the same problem asandreas_kupries2004-05-192-7/+106
| | | | | | | | | | | | | * 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.
* fix to 'file dirname' and to fs refCount documentationvincentdarley2004-05-191-3/+28
|
* Fixed get.test so it really tests Tcl_GetInt() and uses constraints properly.dkf2004-05-191-1/+35
|
* 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
|