summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* * 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.
* nr-enabling [if]Miguel Sofer2008-07-311-4/+14
|
* * 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.
* fix [2021443] inconsistant "wrong # args" messages (follow-up)nijtmans2008-07-211-2/+2
|
* more consistent wrong # arg messages: change all messages containing ↵nijtmans2008-07-131-5/+5
| | | | ?options? to the form ?-option value ...?
* * generic/tclCmdIL.c (InfoFrameCmd): Fixed unsafe idiom of settingandreas_kupries2008-07-071-2/+2
| | | | the interp result found by Don Porter.
* formatting, whitespacedas2008-06-301-39/+49
|
* Lrange cleanup and in-place optimization [Patch 1890831]ferrieux2008-06-291-36/+48
|
* * generic/tclCmdIL.c (TclInfoFrame): Moved the code looking up theandreas_kupries2008-06-161-41/+47
| | | | | | | | * tests/info.test: 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].
* Small clarifications that code a bit nicer to read.dkf2008-05-301-8/+8
|
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-61/+61
|
* * generic/tclCmdIL.c (Tcl_LsortObjCmd): Use ckalloc() to allocatedgp2008-03-141-4/+3
| | | | | SortElement arrays instead of TclStackAlloc() which isn't getting alignment right. Workaround for [Bug 1914503].
* * generic/tclCmdIl.c (Tcl_LreverseObjCmd):Miguel Sofer2008-01-221-1/+10
| | | | | * tests/cmdIL.test (cmdIL-7.7): fix crash on reversing an empty list [Bug 1876793].
* * generic/tclCmdIL.c: more [lsort] data handling streamlines. TheMiguel Sofer2007-12-261-137/+108
| | | | | | | | function MergeSort is gone, essentially inlined into Tcl_LsortObjCmd. It is not a straight inlining, two loops over all lists elements where merged in the process: the linked list elements are now built and merged into the temporary sublists in the same pass.
* * generic/tclCmdIL.c: more [lsort] data handling streamlines.Miguel Sofer2007-12-251-51/+63
| | | | | | Extra mem reqs of latest patches removed, restored to previous mem profile. Improved -unique handling, now eliminating repeated elems immediately instead of marking them to avoid reinsertion at the end.
* * generic/tclCmdIL.c: speed patch for lsort [Patch 1856994].Miguel Sofer2007-12-231-41/+109
|
* * generic/tclCmdIL.c (Tcl_LsortObjCmd, Tcl_LsearchObjCmd): avoidMiguel Sofer2007-12-221-23/+36
| | | | calling SelectObjFromSublist when there are no sublists.
* * generic/tclCmdIL.c (Tcl_LsortObjCmd): preallocate a listObj ofMiguel Sofer2007-12-221-12/+24
| | | | | | sufficient length for the sorted list instead of growing it. Second commit replaces calls to Tcl_ListObjAppenElement with direct access to the internal rep.
* * generic/tclCmdIL.c (Tcl_LsortObjCmd): preallocate a listObj ofMiguel Sofer2007-12-221-2/+2
| | | | sufficient length for the sorted list instead of growing it.
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* Prevent shimmering crash in [lsearch] when -exact and -integer/-real are mixed.dkf2007-12-051-1/+15
| | | | [Bug 1844789]
* Factor out the core compiled-ensemble builder for simplicity.dkf2007-11-211-42/+3
|
* Greatly improved ensemble compiler. This one now can handle any ensemble.dkf2007-11-161-34/+36
| | | | | It is usually not enabled though; only worth it when a subcommand is actually expected to undergo bytecode compilation.
* Compile [info exists] into bytecode. Includes new instructions to support it.dkf2007-11-141-7/+12
|
* [Patch 1830038]: Increased usage of macros to detect and take advantage of ↵Miguel Sofer2007-11-111-36/+36
| | | | objTypes.
* * generic/tclCmdIL.c: factor our core of InfoFrameCmd() into internaldas2007-09-131-14/+41
| | | | TclInfoFrame() for use by DTrace probes.
* VarReform [Patch 1750051]Miguel Sofer2007-07-311-449/+6
| | | | *** POTENTIAL INCOMPATIBILITY *** (tclInt.h and tclCompile.h)
* fix typo ... donal broke the buildMiguel Sofer2007-07-011-2/+2
|
* Plug a memory leak caused by a missing Tcl_DecrRefCount on an error path. ↵dkf2007-06-301-9/+11
| | | | [Bug 1717186]
* * generic/tclCmdIL.c: More conversions to use TclStackAlloc.dgp2007-06-221-3/+5
| | | | * generic/tclScan.c:
* * generic/tclInt.decls: Revised the interfaces of the routinesdgp2007-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: TclStackAlloc and TclStackFree to make them easier for callers to use (or more precisely, harder to misuse). TclStackFree now takes a (void *) argument which is the pointer intended to be freed. TclStackFree will panic if that's not actually the memory the call will free. TSA/TSF also now tolerate receiving (interp == NULL), in which case they simply fall back to be calls to Tcl_Alloc/Tcl_Free. * generic/tclIntDecls.h: make genstubs * generic/tclBasic.c: Updated callers * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclFCmd.c: * generic/tclFileName.c: * generic/tclIOCmd.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclProc.c: * generic/tclTrace.c: * unix/tclUnixPipe.c:
* * generic/tclCmdIL.c (InfoFrameCmd):Miguel Sofer2007-06-181-10/+15
| | | | | | | * generic/tclCmdMZ.c (Tcl_SwitchObjCmd): * generic/tclCompile.c (TclInitCompileEnv): * generic/tclProc.c (Tcl_ProcObjCmd, SetLambdaFromAny): Moved the CmdFrame off the C stack and onto the Tcl stack.
* Convert [info] into an ensemble command.dkf2007-06-121-183/+145
|
* Changes to allow the tip257 code to work as an extension properly post-tip280dkf2007-05-051-7/+16
|
* Whitespace policing, replacing commas in varargs with constant string ↵Kevin B Kenny2007-04-201-3/+3
| | | | catenation, and fixed an oversight in the fix for NZA time zones.