summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclExecute.c: fix [Bug 2030670] that causeMiguel Sofer2008-07-291-5/+6
| | | | | TclStackRealloc to panic on rare corner cases. Thx ajpasadyn for diagnose and patch.
* fix macroMiguel Sofer2008-07-291-2/+2
|
* Completely revamped NRE implementation, with (almost) unchanged API.Miguel Sofer2008-07-2916-1199/+641
|
* * doc/FileSystem.3: CONSTified many functions using Tcl_FileSystemnijtmans2008-07-286-123/+125
| | | | | | | | | | | * generic/tcl.decls: which all are supposed to be a constant, but * generic/tclDecls.h: this was not reflected in the API: * generic/tclFileSystem.h: Tcl_FSGetInternalRep * generic/tclIOUtil.c: Tcl_FSNewNativePath, Tcl_FSData * generic/tclPathObj.c: Tcl_FSRegister, Tcl_FSUnregister * generic/tclTest.c: Tcl_FSGetFileSystemForPath ... This change complies with TIP #24. ***POTENTIAL INCOMPATIBILITY***
* * generic/tclBasic.c: Added missing ref count when creating anandreas_kupries2008-07-281-2/+2
| | | | | | | empty string as path (TclEvalEx). In 8.4 the missing code caused panics in the testsuite. It doesn't in 8.5. I am guessing that the code path with the missing the incr-refcount is not invoked any longer. Because the bug in itself is certainly the same.
* Remove unnecessary hack.dkf2008-07-271-8/+2
|
* * doc/Object.3 CONSTified 3 functions usingnijtmans2008-07-277-46/+48
| | | | | | | | | | | | | | | * doc/ObjectType.3 Tcl_ObjType which all are supposed * generic/tcl.decls to be a constant, but this was not * generic/tcl.h reflected in the API: * generic/tclDecls.h Tcl_ConvertToType * generic/tclObj.c Tcl_GetObjType * generic/tclCompCmds.c Tcl_RegisterObjType * generic/tclOOMethod.c Introduced a CONST86_RETURN, so extensions which * generic/tclTestobj.c use Tcl_ObjType directly can be modified to compile against both Tcl 8.5 and Tcl 8.6 tclDecls.h is re-generated with "make genstubs" This change complies with TIP #24 ***POTENTIAL INCOMPATIBILITY***
* * tests/info.test: Tests 38.* added, exactly testing the trackingandreas_kupries2008-07-253-21/+36
| | | | | | | | | | | | | | | | | of location for uplevel scripts. Resolved merge conflict on info-37.0, switched !singleTestInterp constraint to glob matching instead. Ditto info-22.8, removed constraint, more glob matching, and reduced the depth of the stack we check. More is coming, right now I want to commit the bug fixes. * tests/oo.test: Updated oo-22.1 for expanded location tracking. * generic/tclCompile.c (TclInitCompileEnv): Reorganized the initialization of the #280 location information to match the flow in TclEvalObjEx to get more absolute contexts. * generic/tclBasic.c (TclEvalObjEx): Added missing cleanup of extended location information.
* just a few const -> CONST (in header files and .decls files)nijtmans2008-07-2411-107/+107
| | | | and CONST -> const (.c files and internal .h files)
* CONSTified 4 functions in the Notifier which all have a Tcl_Time* in it which isnijtmans2008-07-245-26/+29
| | | | | | | | | | | supposed to be a constant, but this was not reflected in the API: Tcl_SetTimer Tcl_WaitForEvent Tcl_ConditionWait Tcl_SetMaxBlockTime Introduced a CONST86, so extensions which have their own Notifier (are there any?) can be modified to compile against both Tcl 8.5 and Tcl 8.6. This change complies with TIP #24
* * generic/tclBasic.c: Modified TclArgumentGet to reject pure listsandreas_kupries2008-07-233-28/+31
| | | | | | | | | | * 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/tclBasic.c (GetCommandSource): added comment withMiguel Sofer2008-07-231-1/+9
| | | | explanation and warning for waintainers.
* make genstubsdas2008-07-222-6/+11
|
* fix TclNRInterpProc stub table declaration (broke 'make checkstubs')das2008-07-221-2/+3
|
* fix line-endingsdas2008-07-229-12294/+12294
|
* Added missing function comments.andreas_kupries2008-07-221-1/+41
|
* fix warning; formattingdas2008-07-221-46/+52
|
* * generic/tclCompile.c: Made the new TclEnterCmdWordIndexandreas_kupries2008-07-222-15/+15
| | | | * generic/tclCompile.h: static, and ansified.
* * generic/tclBasic.c: Ansified the new functions.andreas_kupries2008-07-221-9/+11
|
* * generic/tclBasic.c: Reworked the handling of bytecode literalsandreas_kupries2008-07-225-63/+160
| | | | | | | | | | * generic/tclCompile.c: for #280 to fix the abysmal performance * generic/tclCompile.h: for deep recursion, replaced the linear * generic/tclExecute.c: search through the whole stack with * generic/tclInt.h: another hashtable and simplified the data structure used by the compiler (array instead of hashtable). Incidentially this also fixes the memory leak reported via [Bug 2024937].
* * generic/tclBasic.c: Added numLevels field to CommandFrame,Miguel Sofer2008-07-223-4/+9
| | | | | * generic/tclExecute.c: let GetCommandSource use it. This solves * generic/tclInt.h: [Bug 2017146]. Thx dgp for the analysis.
* fix warning, formatting, whitespacedas2008-07-211-68/+80
|
* * generic/tclBasic.c: Extended the existing TIP #280 system (infoandreas_kupries2008-07-218-62/+383
| | | | | | | | | | | | * generic/tclCmdAH.c: frame), added the ability to track the * generic/tclCompCmds.c: absolute location of literal procedure * generic/tclCompile.c: arguments, and making this information * generic/tclCompile.h: available to uplevel, eval, and * generic/tclInterp.c: siblings. This allows proper tracking of * generic/tclInt.h: absolute location through custom (Tcl-coded) * generic/tclNamesp.c: control structures based on uplevel, etc. * generic/tclProc.c: * tests/info.test:
* fix [2021443] inconsistant "wrong # args" messages (follow-up)nijtmans2008-07-213-8/+8
|
* formatting, whitespacedas2008-07-211-18/+21
|
* whitespacedas2008-07-211-22/+22
|
* fix [2021443] inconsistant "wrong # args" messages (follow-up)nijtmans2008-07-216-51/+51
|
* TIP #304 implementationferrieux2008-07-2111-12283/+12351
|
* use TclEvalObjv instead of Tcl_EvalObjv at selected spotsMiguel Sofer2008-07-212-7/+7
|
* * generic/tcl.decls: Changed the implementation ofMiguel Sofer2008-07-218-75/+97
| | | | | | | | | | * generic/tclBasic.c: [namespace import]; removed * generic/tclDecls.h: Tcl_NRObjProc, replaced with * generic/tclExecute.c: Tcl_NRCmdSwap (proposed public * generic/tclInt.h: NRE API). This should fix * generic/tclNRE.h: [Bug 582506]. * generic/tclNamesp.c: * generic/tclStubInit.c:
* Inode numbers on Windows are not unique so avoid the inode check on this ↵patthoyts2008-07-211-5/+7
| | | | platform [Bug 2015723]
* fix uninited and unused var warningsMiguel Sofer2008-07-211-3/+2
|
* * generic/tclBasic.c: NRE: enabled calling NR commandsMiguel Sofer2008-07-215-242/+341
| | | | | | | | * generic/tclExecute.c: from the callbacks. Completely * generic/tclInt.h: redone tailcall implementation * generic/tclNRE.h: using the new feature. * generic/tclProc.c: * tests/NRE.test:
* Fix [Bug 2008248] and make dict->list->dict round trip efficient to boot.dkf2008-07-202-12/+56
|
* fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-1915-41/+41
|
* new TclNRAddCallback macro for internal use instead of the publicMiguel Sofer2008-07-1812-54/+70
| | | | Tcl_NRAddCallback
* NRE-enable the TclOO constructor system.dkf2008-07-183-37/+204
|
* * generic/tcl.decls: Change the public api prefix fromMiguel Sofer2008-07-1815-138/+138
| | | | | | | | | | | | | | | | | * generic/tcl.h: TclNR_foo to Tcl_NRfoo * generic/tclBasic.c: * generic/tclDecls.h: * generic/tclDictObj.c: * generic/tclExecute.c: * generic/tclInterp.c: * generic/tclNRE.h: * generic/tclNamesp.c: * generic/tclOO.c: * generic/tclOOBasic.c: * generic/tclOOCall.c: * generic/tclOOMethod.c: * generic/tclProc.c: * generic/tclStubInit.c:
* NRE-enable oo::object.evaldkf2008-07-181-13/+28
|
* Minor fixes (clearer panic messages, formatting of comments)dkf2008-07-181-55/+50
|
* * generic/tclDictObj.c (DictWithCmd, DictUpdateCmd): fixMiguel Sofer2008-07-182-27/+20
| | | | | | | refcounting bugs that caused crashes [Bug 2017857]. * generic/tclBasic.c (TclNREvalObjEx): streamline the management of the command frame (opt).
* Tinkeringdkf2008-07-171-29/+37
|
* stop crash in test suite!dkf2008-07-171-1/+11
|
* NRE-ify the non-compiled version of [dict update].dkf2008-07-171-9/+40
|
* Add NRE support to [dict with].dkf2008-07-171-11/+50
|
* NRE-aware TclOO.dkf2008-07-165-56/+238
|
* * generic/tclParse.c: fixing incomplete reversion of "fix" forMiguel Sofer2008-07-151-1/+2
| | | | [Bug 2017583], missing TclResetCancellation call.
* Fix [Bug 2018603]dkf2008-07-151-33/+24
|
* Factor the ensemble code a bit more.dkf2008-07-151-168/+236
|
* * generic/tclParse.c: reverting the "fix" for [Bug 2017583],Miguel Sofer2008-07-141-3/+10
| | | | | * tests/parse.test: numLevel management and TclInterpReady check seems to be necessary after all.