summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* slight reduction in cost of INST_START_CMDMiguel Sofer2005-04-011-7/+29
|
* * generic/tclExecute.c:Miguel Sofer2005-04-012-5/+13
| | | | | * generic/tclInt.h: ExecEnv now stores two Tcl_Obj* pointing to the constants "0" and "1", for use by TEBC.
* * generic/tclExecute.c:Miguel Sofer2005-04-014-138/+257
| | | | | | | | | * generic/tclInt.h: * generic/tclObj.c: * generic/tclStringObj.c: defined new internal macros for creating and setting frequently used obj types (int,long, wideInt, double, string). Changed TEBC to use eg 'TclNewIntObj(objPtr, i)' to avoid the function call in 'objPtr = Tcl_NewIntObj(i)'
* * generic/tclExecute.c (INST_JUMP_TRUE/FALSE): replacedMiguel Sofer2005-03-311-70/+58
| | | | "test and branch" with "compute index into table"
* * generic/tclCompile.h: Move the TclInterpReady() declaration fromdgp2005-03-253-8/+4
| | | | | | | | | | * generic/tclInt.h: tclCompile.h to tclInt.h. Should have been done as part of the 1115904 bug fix on 2005-03-18. * generic/tclThreadTest.c: Stop providing the phony package "Thread 1.0" when the [::testthread] command is defined. It's never used by anything, and conflicts with loading the real "Thread" package.
* purge outdated commentdgp2005-03-231-4/+2
|
* * generic/tclBasic.c (Tcl_EvalEx): Restored recursion limitdgp2005-03-182-16/+22
| | | | | | | | * generic/tclParse.c (TclSubstTokens): testing in nested command * tests/basic.test (basic-46.4): substitutions within direct * tests/parse.test (parse-19.*): script evaluation (Tcl_EvalEx) that got lost in the parser reforms of Tcl 8.1. Added tests for correct behavior. [Bug 1115904]
* * generic/tclCompCmds.c (TclCompileIncrCmd): Corrected checksdgp2005-03-181-15/+11
| | | | | for immediate operand usage to permit leading space and sign characters. [Bug 1165671]
* more tests and a fix to bug 1158199vincentdarley2005-03-151-4/+7
|
* fix to file norm, file pathtype on windows reserved filenames - ensure build ↵vincentdarley2005-03-151-4/+4
| | | | ok on unix
* fix to file norm, file pathtype on windows reserved filenames - ensure build ↵vincentdarley2005-03-151-4/+10
| | | | ok on unix
* fix to file norm, file pathtype on windows reserved filenamesvincentdarley2005-03-151-14/+15
|
* * generic/tclExecute.c: fixed INST_PUSH1's debugging code (wrongMiguel Sofer2005-03-141-2/+2
| | | | obj ref passed to TRACE_WITH_OBJ).
* * generic/tclCompile.c: fixed INST_RETURN's stack effect inMiguel Sofer2005-03-141-2/+2
| | | | tclInstructionTable (-1 instead of -2)
* * generic/tclCompCmds.c: removed debugging lineMiguel Sofer2005-03-101-2/+1
|
* * generic/tclTrace.c (TclCheckInterpTraces): Corrected mistakendgp2005-03-103-24/+30
| | | | | | | | | cast of ClientData to (TraceCommandInfo *) when not warranted. Thanks to Yuri Victorovich for the report. [Bug 1153871] * generic/tcl.h: Moved flag values TCL_TRACE_ENTER_EXEC and * generic/tclInt.h: TCL_TRACE_LEAVE_EXEC from public interface into private. Should be used only by internal workings of execution traces.
* Fix commentdkf2005-03-091-1/+2
|
* * generic/tclExecute.c: new peephole optimisation for INST_PUSH1;Miguel Sofer2005-03-071-6/+27
| | | | | fixed the peephole opt in INST_POP so that it is not used when TCL_COMPILE_DEBUG is defined.
* * generic/tclBasic.c (Tcl_EvalObjEx):Miguel Sofer2005-02-101-5/+21
| | | | | | * tests/basic.test (basic-26.2): preserve the arguments passed to TEOV in the pure-list branch, in case the list shimmers away. Fix for [Bug 1119369], reported by Peter MacDonald.
* fix to test suite failuresvincentdarley2005-02-101-3/+12
|
* * doc/Thread.3: Fixed sentence describing flags for Tcl_CreateThread.davidw2005-02-051-2/+2
| | | | | | | * doc/FileSystem.3: Cleaned up typo in Tcl_FSNewNativePath documentation. * generic/tclPathObj.c: Cleaned up typo in comment.
* Whitespace fixes and add notes to #else/#endif so it is clearer what's happeningdkf2005-02-031-25/+26
|
* * generic/tclProc.c (TclInitCompiledLocals):mdejong2005-02-021-3/+9
| | | | | | | | | | Add check for type of the framePtr->procPtr->bodyPtr passed to TclInitCompiledLocals and panic if it is not the correct type. If the body of the proc is not of the compiled byte code type then the code will crash. This was discovered while tracking down a crash in Itcl, that crash is fixed by Itcl patch 1115085.
* * generic/tclExecute.c (TclCompEvalObj): Removed stray statementdgp2005-02-011-2/+1
| | | | left behind in prior code reorganization.
* Added test for [1109484]dkf2005-01-281-3/+8
|
* * generic/tclBasic.c (Tcl_ExprBoolean, Tcl_ExprDouble)hobbs2005-01-281-4/+46
| | | | (Tcl_ExprLong): Fix to recognize Tcl_WideInt type. [Bug 1109484]
* TIP#218 IMPLEMENTATIONandreas_kupries2005-01-276-29/+102
| | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/CrtChannel.3: Documentation of extended API, * generic/tcl.decls: extended testsuite, and * generic/tcl.h: implementation. Removal of old * generic/tclIO.c: driver-specific TclpCut/Splice * generic/tclInt.h: functions. Replaced with generic * tests/io.test: thread-action calls through the * unix/tclUnixChan.c: new hooks. Update of all builtin * unix/tclUnixPipe.c: channel drivers to version 4. * unix/tclUnixSock.c: Windows drivers extended to * win/tclWinChan.c: manage thread state in a thread * win/tclWinConsole.c: action handler. * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c:
* * generic/tclStubInit.c: Regenerated the stubs support code fromandreas_kupries2005-01-215-5/+58
| | | | | | | | | | | | | | * 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.
* * generic/tclThread.c: Typo police. Fixed some nitsandreas_kupries2005-01-214-9/+9
| | | | | | * generic/tclCmdAH.c: in header comments of functions. * generic/tclBasic.c: (Missing --). * generic/tclFileName.c:
* regendkf2005-01-192-2/+155
|
* TIP#235 implementation (rename functions, add to stubs table, document)dkf2005-01-195-112/+132
| | | | Ensembles now have a C API. :^)
* fix to glob failure on Windows sharesvincentdarley2005-01-171-2/+18
|
* With vfs permissions can exist on non-unix filesystemsvincentdarley2005-01-141-3/+1
|
* D'oh!dkf2005-01-141-2/+2
|
* Stop reliance on absolute attribute indexes with helper function [Bug 1100671]dkf2005-01-143-10/+95
|
* Move #include of tclConfig.h to right place.dkf2005-01-052-6/+6
|
* bugs 1090413, 1092789 fixedKevin B Kenny2004-12-292-103/+107
|
* Avoid sharing cmdName literals accross namespaces, and generalise usage ofMiguel Sofer2004-12-246-37/+74
| | | | the TclRegisterNewLiteral macro [Patch 1090905]
* fix for last commit; thanks dgp and tclguy for catch/classify/throwMiguel Sofer2004-12-201-3/+3
|
* * generic/tclCompile.c: moved TclInitCompiledLocals to tclProc.cMiguel Sofer2004-12-202-170/+235
| | | | | | | | * generic/tclProc.c: new static InitCompiledLocals to allow for a single pass over the proc's arguments at proc load time (instead of two as previously). TclObjInterpProc() now allocates the compiledLocals on the tcl execution stack, using the new TclStackAlloc/Free functions.
* Upgrade the capabilities of time limits by allowing them to fire in the midstdkf2004-12-164-19/+145
| | | | of the processing of the event loop or during a blocking [after]. [Bug 1085023]
* * generic/tclTest.c: Added two new functions to allocate memoryMiguel Sofer2004-12-158-33/+229
| | | | | | | | | | from the execution stack (TclStackAlloc, TclStackFree). Added functions TclPushStackFrame and TclPopStackFrame that do the work of Tcl_PushCallFrame and Tcl_PopCallFrame, but using frames allocated in the execution stack - i.e., heap instead of C-stack. The core uses these two new functions exclusively; the old ones remain for backwards compat, as at least two popular extensions (itcl, xotcl) are known to use them.
* changing the isProcCallFrame field of the CallFrame struct from a 0/1 fieldMiguel Sofer2004-12-144-23/+27
| | | | to flags. Should be perfectly backwards compatible.
* * generic/tcl.h: Restored extern "C" guards so that C++ codedgp2004-12-131-1/+17
| | | | | sees function pointer typedef linkage consistent with earlier Tcl releases. [Bug 1082349].
* * generic/tclEncoding.c: Plugged some memory leaks. Thanks todgp2004-12-132-3/+5
| | | | * generic/tclUtil.c: Rolf Ade for reports and testing [Bug 1083082]
* * generic/tclVar.c (TclArrayObjCmd - ARRAY_NAMES): leaking an object [BugMiguel Sofer2004-12-131-1/+2
| | | | 1084111] - thanks to Rolf Ade.
* * generic/tclObj.c (TclSetCmdNameObj): special handling for fully qualifiedMiguel Sofer2004-12-121-1/+19
| | | | command names (as in fix [Patch 456668]).
* converting the static function GetNamespaceFromObj() to MODULE_SCOPEMiguel Sofer2004-12-112-13/+14
| | | | TclGetNamespaceFromObj().
* Bump to a3 to prevent confusion with a2 release.dkf2004-12-101-3/+3
|
* optimised loops that initialise a proc's arguments and compiled localMiguel Sofer2004-12-104-114/+162
| | | | variables, removing tests from inner loops.