summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Allow [dict exists {a {b c}} d e] to not be an error. [Bug 871387]dkf2004-01-141-18/+45
|
* Dict refcount fixes from Peter Spjuth. Thanks! [Bug 876170]dkf2004-01-141-14/+47
|
* * generic/tclCmdMZ.c (Tcl_SwitchObjCmd): Silence compiler warnings.dgp2004-01-131-3/+3
|
* Patch 876451: restores performance of [return]. Also allows formsdgp2004-01-136-134/+383
| | | | | | | | | | | | | | | | | | | | | | | | | | such as [return -code error $msg] to be bytecompiled. * generic/tclInt.h: Factored Tcl_ReturnObjCmd() into two pieces: * generic/tclCmdMZ.c: TclMergeReturnOptions(), which can parse the options to [return], check their validity, and create the corresponding return options dictionary, and TclProcessReturn(), which takes that return options dictionary and performs the [return] operation. * generic/tclCompCmds.c: Rewrote TclCompileReturnCmd() to call TclMergeReturnOptions() at compile time so the return options dictionary is computed at compile time (when it is fully known). The dictionary is pushed on the stack along with the result, and the code and level values are included in the bytecode as operands. Also supports optimized compilation of un-[catch]ed [return]s from procs with default options into the INST_DONE instruction. * generic/tclExecute.c: Rewrote INST_RETURN instruction to retrieve the code and level operands, pop the return options from the stack, and call TclProcessReturn() to perform the [return] operation. * generic/tclCompile.h: New utilities include TclEmitInt4 macro * generic/tclCompile.c: and TclWordKnownAtCompileTime().
* * 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.
* Fix shared object panics. [Bug 875395]dkf2004-01-131-3/+6
|
* improved commentsMiguel Sofer2004-01-121-10/+6
|
* * generic/tclCompExpr.c (CompileLandOrLorExpr): cosmetic changes.Miguel Sofer2004-01-121-17/+12
|
* Fix a comment.Miguel Sofer2004-01-121-3/+2
|
* * generic/tclCompExpr.c (CompileLandOrLorExpr): new logic, fewerMiguel Sofer2004-01-122-39/+62
| | | | | | | instructions. As a side effect, the instructions INST_LOR and INST_LAND are now never used. * generic/tclExecute.c (INST_JUMP*): small optimisation; fix a bug in debug code.
* Renamed and deprecated #defines moved to within the #ifndef TCL_NO_DEPRECATEDdavygrvy2004-01-091-16/+18
| | | | | block. This alows us to build Tcl to check for deprecated functions in use, such as panic() and Tcl_Ckalloc(). By request from DKF.
* TclFinalizeFilesystem fixvincentdarley2004-01-091-3/+3
|
* Deprected use of Tcl_Ckalloc changed to Tcl_Alloc in thedavygrvy2003-12-241-2/+2
| | | | TclAllocObjStorage macro.
* All uses of 'panic' (the macro) changeddavygrvy2003-12-2435-219/+219
| | | | | | | to 'Tcl_Panic' (the function). The #define of panic in tcl.h clearly states it is deprecated in the comments. [Patch 865264]
* Removed note that makefile.vc needs to have a version number changed.davygrvy2003-12-231-2/+1
|
* * generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bugdas2003-12-171-2/+4
| | | | when numeric scan-value cache contains NULL value.
* fix to file normalization with relative linksvincentdarley2003-12-171-3/+15
|
* fix to fs norm bug 860402vincentdarley2003-12-171-4/+7
|
* fixed Tcl_FSGetTranslatedPath to always return properly refcountedvasiljevic2003-12-171-9/+10
| | | | path object. This fixes Tcl Bug #861515.
* Fixed 2 memory (object) leaks; Tcl Bug #839519vasiljevic2003-12-171-2/+4
|
* Made a variable file-local for safetydkf2003-12-161-2/+2
|
* * generic/tclInt.decls: commented-out entry fordavygrvy2003-12-153-17/+10
| | | | | | TclpCheckStackSpace, removing it from the Stubs table. It's already declared in tclInt.h and labeled as a function that is not to be exported. Regened tables.
* TIP#75 Implementationdkf2003-12-141-19/+172
|
* Stop warnings due to (annoying) C type promotion rules.dkf2003-12-141-6/+5
|
* rewrite of file normalizationvincentdarley2003-12-141-84/+220
|
* file normalize ~nobody fixvincentdarley2003-12-121-1/+4
|
* Stop losing references when variables are repeated in [binary scan]. [851747]dkf2003-12-021-40/+71
|
* * generic/tclParse.c: Corrected faulty check for trailing whitedgp2003-11-241-2/+4
| | | | | space in {expand} parsing. Thanks Andreas Leitgeb. [Bug 848262]. * tests/parse.test: New tests for the bug.
* remove windows [cd] bugvincentdarley2003-11-241-5/+12
|
* * generic/tclVar.c: fix flag bit collision betweenMiguel Sofer2003-11-201-2/+6
| | | | LOOKUP_FOR_UPVAR and TCL_PARSE_PART1 (deprecated) [Bug 835020]
* Fixed Bug 845412; long commands without expansion don't get tangled with thedkf2003-11-191-2/+2
| | | | expansion machinery now...
* Added cast to suppress compiler warning.dgp2003-11-171-2/+2
|
* Miguel's masking bits had the wrong sense. I should have spotteddkf2003-11-161-2/+2
| | | | this, but he did instead...
* D'oh! instructionCount is post-incremented, not pre-incremented...dkf2003-11-161-3/+4
|
* Miguel Sofer's patch (with small revisions) to make sure the bytecode enginedkf2003-11-162-2/+98
| | | | checks for async events fairly frequently. [Bug 746722]
* Stop VC++ 5.2 warning. [Bug 842511]dkf2003-11-151-2/+2
|
* Whitespace fixesdkf2003-11-151-15/+15
|
* Fixed code that splits RE engine states into "progress" and "no-progress" ↵pvgoran2003-11-151-2/+6
| | | | (bugs 505048, 230589, 840258 and 504785).
* Added cast to suppress compiler warning.dgp2003-11-151-2/+2
|
* TIP#138 implementation plus extra test stuff [Patch 731356]dkf2003-11-143-19/+142
|
* * doc/ParseCmd.3: Implementation of TIP 157. Adds recognitiondgp2003-11-147-57/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Tcl.n: of the new leading {expand} syntax on words. * generic/tcl.h: Parses such words as the new Tcl_Token type * generic/tclBasic.c: TCL_TOKEN_EXPAND_WORD. Updated Tcl_EvalEx * generic/tclCompile.c: and the bytecode compiler/execution engine * generic/tclCompile.h: to recognize the new token type. New opcodes * generic/tclExecute.c: INST_LIST_VERIFY and INST_INVOKE_EXP and a new * generic/tclParse.c: operand type OPERAND_ULIST1 are defined. Docs * generic/tclTest.c: and tests are included. * tests/basic.test: * tests/compile.test: * tests/parse.test: * library/auto.tcl: Replaced several [eval]s used to perform * library/package.tcl: argument expansion with the new syntax. * library/safe.tcl: In the test files lindex.test and lset.test, * tests/cmdInfo.test: replaced use of [eval] to force direct * tests/encoding.test: string evaluation with use of [testevalex] * tests/execute.test: which more directly and robustly serves the * tests/fCmd.test: same purpose. * tests/http.test: * tests/init.test: * tests/interp.test: * tests/io.test: * tests/ioUtil.test: * tests/iogt.test: * tests/lindex.test: * tests/lset.test: * tests/namespace-old.test: * tests/namespace.test: * tests/pkg.test: * tests/pkgMkIndex.test: * tests/proc.test: * tests/reg.test: * tests/trace.test: * tests/upvar.test: * tests/winConsole.test: * tests/winFCmd.test:
* fix to misleading error messagevincentdarley2003-11-101-8/+17
|
* compilation warningvincentdarley2003-11-071-3/+10
|
* loadHandle vs clientData cleanupvincentdarley2003-11-032-17/+112
|
* whitespacevincentdarley2003-11-031-2/+2
|
* remove warningvincentdarley2003-11-031-2/+2
|
* Typo fixdkf2003-11-021-2/+2
|
* regendkf2003-11-012-2/+26
|
* When copying and pasting code, check that argument types are sensible! <:^)dkf2003-11-012-8/+8
|
* Oopsdkf2003-11-011-2/+2
|