summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
Commit message (Collapse)AuthorAgeFilesLines
...
| | * * generic/tcl.h Made changes so that the "wideInt" Tcl_ObjTypedgp2003-04-161-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclObj.c is defined on all platforms, even those where * generic/tclPort.h TCL_WIDE_INT_IS_LONG is defined. Also made the Tcl_Value struct have a wideValue field on all platforms. This is a ***POTENTIAL INCOMPATIBILITY*** for TCL_WIDE_INT_IS_LONG platforms because that struct changes size. This is the same TIP 72 incompatibility that was seen on other platforms at the 8.4.0 release, when this change should have happened as well. [Bug 713562] * generic/tclInt.h: New internal macros TclGetWide() and TclGetLongFromWide() to deal with both forms of the "wideInt" Tcl_ObjType, so that conditional TCL_WIDE_INT_IS_LONG code is confined to the header file. * generic/tclCmdAH.c: Replaced most coding that was conditional * generic/tclCmdIL.c: on TCL_WIDE_INT_IS_LONG with code that * generic/tclExecute.c: works across platforms, sometimes using * generic/tclTest.c: the new macros above to do it. * generic/tclUtil.c: * generic/tclVar.c:
| * | * generic/tclCmdIL.c (Tcl_LsetObjCmd): [Bug 3019351]: Corrected wrongdkf2010-06-221-2/+2
| | | | | | | | | | | | args message.
| * | Backport of memory leak plug.dkf2009-08-201-1/+4
| | |
| * | * generic/tclCmdIL.c: Removed unused variables.dgp2009-07-161-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCompile.c: * generic/tclVar.c: * unix/tclUnixChan.c: * generic/tclScan.c: Typo in ACCEPT_NAN configuration. * generic/tclStrToD.c: Set floating point control register on MIPS systems so that the gradual underflow expected by Tcl is in effect. [Bug 2819200]
| * | Missed a (minor) change.dkf2008-09-271-2/+2
| | |
| * | Fix [Bug 2130992].dkf2008-09-271-2/+18
| | |
| * | * generic/tclCmdIL.c (TclInfoFrame): check fPtr->line beforedas2008-08-141-2/+4
| | | | | | | | | | | | | | | | | | dereferencing as line info may not exists when TclInfoFrame() is called from a DTrace probe.
| * | * generic/tclBasic.c: Modified TclArgumentGet to reject pure listsandreas_kupries2008-07-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdIL.c: immediately, without search. Reworked setup * generic/tclCompile.c: of eoFramePtr, doesn't need the line * tests/info.test: information, more sensible to have everything on line 1 when eval'ing a pure list. Updated the users of the line information to special case this based on the frame type (i.e. TCL_LOCATION_EVAL_LIST). Added a testcase demonstrating the new behaviour.
| * | * generic/tclCmdIL.c (InfoFrameCmd): Fixed unsafe idiom of settingandreas_kupries2008-07-071-2/+2
| | | | | | | | | | | | the interp result found by Don Porter.
| * | * generic/tclCmdIL.c (TclInfoFrame): Backport of fix made on theandreas_kupries2008-06-161-41/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/info.test: head branch :: Moved the code looking up the information for key 'proc' out of the TCL_LOCATION_BC branch to after the switch, this is common to all frame types. Updated the testsuite to match. This was exposed by the 2008-06-08 commit (Miguel), switching uplevel from direct eval to compilation. Fixes [Bug 1987851].
* | | * generic/tclCmdIL.c (SortElement): Use unions properly in thedkf2011-01-011-25/+28
| | | | | | | | | | | | | | | | | | definition of this structure so that there is no need to use nasty int/pointer type punning. Made it clearer what the purposes of the various parts of the structure are.
* | | * generic/tclCmdIL.c (Tcl_LsortObjCmd): Fix crash when multiple -indexdkf2010-12-271-44/+48
| | | | | | | | | | | | options are used. Simplified memory handling logic.
* | | Fix gcc -Wextra warning: missing initializernijtmans2010-12-101-26/+26
| | |
* | | * generic/tclBasic.c: [Patch 3072080] (minus the itclMiguel Sofer2010-09-271-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdIL.c: update): a saner NRE. * generic/tclCompExpr.c: * generic/tclCompile.c: This makes TclNRExecuteByteCode * generic/tclCompile.h: (ex TEBC) to be a normal NRE * generic/tclExecute.c: citizen: it loses its special status. * generic/tclInt.decls: The logic flow within the BC engine is * generic/tclInt.h: simplified considerably. * generic/tclIntDecls.h: * generic/tclObj.c: * generic/tclProc.c: * generic/tclTest.c:
* | | Remove many type casts which are no longernecessary as a result of [Patch ↵nijtmans2010-08-221-3/+3
| | | | | | | | | | | | 3009403]: Signature of Tcl_GetHashKey, Tcl_(Create|Find)HashEntry
* | | * generic/tclCmdIL.c (Tcl_LsetObjCmd): [Bug 3019351]: Corrected wrongdkf2010-06-221-2/+3
| | | | | | | | | | | | args message.
* | | * generic/tclCmdIL.c (TclInfoFrame): Change this code to usedkf2010-05-171-9/+6
| | | | | | | | | | | | | | | Tcl_GetCommandFullName rather than rolling its own. Discovered during the hunting of [Bug 3001438] but unlikely to be a fix.
* | | TIP #348 IMPLEMENTATION - Substituted error stackferrieux2010-04-051-1/+56
| | |
* | | Code Audit results:dkf2010-03-051-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations
* | | Oops! [Bug 2960852]dkf2010-02-281-9/+12
| | |
* | | More additions of {TCL LOOKUP} error-code generation to various subcommands ofdkf2010-02-281-1/+9
| | | | | | | | | | | | [info] as part of long-term project to classify all Tcl's generated errors.
* | | More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-7/+6
| | |
* | | [Bug 2918962]: Stop crash when -index and -stride are used together in [lsort].dkf2009-12-221-11/+15
| | |
* | | * generic/tclCmdIL.c: Fix of [Bug #2910094] by akuMiguel Sofer2009-12-071-2/+2
| | | | | | | | | | | | * tests/coroutine.test:
* | | Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-181-26/+26
| | |
* | | Revert mistaken commitdgp2009-11-161-56/+1
| | |
* | | (forward port) Fix [Bug 2891556] and improve test to detect similar ↵ferrieux2009-11-161-1/+56
| | | | | | | | | | | | manifestations in the future. Add tcltest support for finalization.
* | | Use the Tcl value stack more, simplify exit paths in [lsearch]dkf2009-08-201-75/+40
| | |
* | | Close off memory leak in [lsort].dkf2009-08-201-74/+68
| | |
* | | Interpreted [if] is now fully NRE-enabled. [Bug 2823276]dkf2009-08-191-36/+78
| | |
* | | * generic/tclBinary.c: Removed unused variables.dgp2009-07-161-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdIL.c: * generic/tclCompile.c: * generic/tclExecute.c: * generic/tclHash.c: * generic/tclIOUtil.c: * generic/tclVar.c: * generic/tclBasic.c: Silence compiler warnings about ClientData. * generic/tclProc.c: * generic/tclScan.c: Typo in ACCEPT_NAN configuration. * generic/tclStrToD.c: Set floating point control register on MIPS systems so that the gradual underflow expected by Tcl is in effect. [Bug 2819200]
* | | tweaksdkf2009-07-111-5/+6
| | |
* | | * generic/tclInt.h: add assert macros for clang staticdas2009-06-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclPanic.c: analyzer and redefine Tcl_Panic to * generic/tclStubInit.c: assert after panic in clang PURIFY builds. * generic/tclCmdIL.c: add clang assert for false positive from static analyzer.
* | | - eliminate some unnessary type castsnijtmans2009-02-031-14/+14
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-6/+6
| | | | | | | | | | | | etc.)
* | | * generic/tclCompile.h: Declare the internal tclInstructionTabledgp2008-10-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: to simply be "const", not CONST86. * generic/tclCmdAH.c: whitespace. * generic/tclCmdIL.c: Uninitialized variable warning. * generic/tclTest.c: const correctness warning.
* | | Add "const" to many internalnijtmans2008-10-161-8/+8
| | | | | | | | | | | | | | | const tables. No functional or API change.
* | | * generic/tclExecute.c: Fix compile warnings when --enable-symbols=all.dgp2008-10-141-5/+6
| | | | | | | | | | | | | | | * generic/tclCmdIL.c: Fix write to unallocated memory whenever [lrepeat] returns an empty list.
* | | * generic/tclBasic.c: Move [tailcall], [coroutine] andMiguel Sofer2008-10-071-1/+2
| | | | | | | | | | | | | | | | | | * generic/tclCmdIL.c: [yield] out of ::tcl::unsupported * tests/info.test: and into global scope: TIPs #327 * tests/unsupported.test: and #328
* | | More result hygiene.dkf2008-10-041-3/+3
| | |
* | | TIP #323 IMPLEMENTATION (partial)dgp2008-09-291-3/+3
| | | | | | | | | | | | | | | | | | * doc/linsert.n: Revise [linsert] to accept zero elements. * generic/tclCmdIL.c: * tests/linsert.test:
* | | TIP #326 IMPLEMENTATIONdkf2008-09-291-13/+115
| | |
* | | TIP #313 IMPLEMENTATIONdkf2008-09-291-19/+39
| | |
* | | Corrected sanity test in zero-element casedkf2008-09-271-2/+3
| | |
* | | Fix [Bug 2130992].dkf2008-09-271-4/+20
| | |
* | | TIP #323 IMPLEMENTATION (partial)dgp2008-09-261-9/+9
| | | | | | | | | | | | | | | | | | * doc/lrepeat.n: Revise [lrepeat] to accept both zero * generic/tclCmdIL.c: repetitions and zero elements to be repeated. * tests/lrepeat.test:
* | | TIP #323 IMPLEMENTATION (partial)dgp2008-09-261-3/+3
| | | | | | | | | | | | | | | | | | * doc/lassign.n: Revise [lassign] to accept zero variable names. * generic/tclCmdIL.c: * tests/cmdIL.test:
* | | * generic/tclBasic.c: Previous fix, now done right.Miguel Sofer2008-08-211-43/+27
| | | | | | | | | | | | | | | | | | * generic/tclCmdIL.c: * generic/tclInt.h: * tests/unsupported.test:
* | | parts of last commit were not saved :}Miguel Sofer2008-08-211-4/+15
| | |
* | | * generic/tclBasic.c: Fix the cmdFrame level count inMiguel Sofer2008-08-211-1/+11
| | | | | | | | | | | | | | | * generic/tclCmdIL.c: coroutines. Fix small bug on coroutine * generic/tclInt.h: rewind.