summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclBasic.c (TclNREvalObjv, Tcl_NRCallObjProc): DTrace probesdas2008-08-144-34/+243
| | | | | | | | | | | | | | | * generic/tclProc.c (TclNRInterpProcCore, InterpProcNR2): for NRE. [Bug 2017160] * generic/tclBasic.c (TclDTraceInfo): add two extra arguments to * generic/tclCompile.h: DTrace 'info' probes for tclOO * generic/tclDTrace.d: method & class/object info. * generic/tclCompile.h: add support for debug logging of DTrace * generic/tclBasic.c: 'proc', 'cmd' and 'inst' probes (does _not_ require a platform with DTrace). FossilOrigin-Name: c21fbf3f17dc5b30173cbf28b1603b28626e450d
* * 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. FossilOrigin-Name: 8aedfc1b91547138c2dbfe8f6250bb62028b1a5b
* * unix/tclUnixThrd.c: remove unused TclpThreadGetStackSize()das2008-08-131-2/+1
| | | | | | | | * generic/tclInt.h: and related ifdefs and autoconf tests. * unix/tclUnixPort.h: [Bug 2017264] (jenglish) * unix/tcl.m4: FossilOrigin-Name: 626938b63a773d9d4558b46e41fbc0197077e59d
* * generic/tclFileName.c: Fix for errors handling -types {}dgp2008-08-131-1/+5
| | | | | | | * tests/fileName.test: option to [glob]. [Bug 1750300] Thanks to Matthias Kraft and George Peter Staplin. FossilOrigin-Name: d391632bf332b83305547b0264a6ae7ab24e713a
* * generic/tclOOInfo.c (InfoObjectDefnCmd, InfoObjectMixinsCmd):hobbs2008-08-121-3/+3
| | | | | | fix # args displayed. [Bug 2048676] FossilOrigin-Name: 7237db2f3ea0f199ed56a0e6ebb56ab68bbc8d8c
* * generic/tclOOMethod.c (PushMethodCallFrame): Added missing checkdgp2008-08-121-3/+6
| | | | | | for bytecode validity. [Bug 2037727] FossilOrigin-Name: ccb470815e5f589b050a5a8fd5cbd3b140f5258d
* * generic/tclProc.c (TclProcCompileProc): On recompile ofdgp2008-08-121-1/+25
| | | | | | | | a proc, clear away any entries on the CompiledLocal list from the previous compile. This will prevent compile of temporary variables in the proc body from growing the localCache arbitrarily large. FossilOrigin-Name: 47649f8b7941eb18ea42ca97d758e5c5999448f0
* * README: Bump version number to 8.6a2dgp2008-08-121-3/+3
| | | | | | | | | | | | | | * generic/tcl.h: * library/init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * unix/configure: autoconf-2.59 * win/configure: FossilOrigin-Name: ff4d6323a8a967a63d32d28abbf0d562953b1388
* * generic/tclProc.c (Tcl_ProcObjCmd): Fixed memory leak triggeredandreas_kupries2008-08-111-3/+23
| | | | | | | | * tests/proc.test: by procbody::test::proc. See [Bug 2043636]. Added a test case demonstrating the leak before the fix. Fixed a few spelling errors in test descriptions as well. FossilOrigin-Name: 6ea9a5e52e3fc0bf9a0ff9c06bce4dce07afe7e9
* made variable Tcl_ChannelType *parentType in TransFormSeek(Wide)?Proc a ↵nijtmans2008-08-101-3/+3
| | | | | | | | | const. This variable is only used in a Tcl_Channel(Wide)?SeekProc call, where it is handled as a const, so we might as well consider it a const a few lines earlier. FossilOrigin-Name: b300e8ceeb2df8ebe691c3e0a028b8c7ce821110
* remove unused varsmsofer2008-08-101-3/+1
| | | FossilOrigin-Name: 08501ee7058cfc51e09cae502636c69e794ae3c5
* * generic/tclProc.c: completely removed ProcCompileProc, which wasmsofer2008-08-101-85/+4
| | | | | | | | a fix for [Bug 1482718]. This is not needed at least since varReform, where the local variable data at runtime is read from the CallFrame and/or the LocalCache. FossilOrigin-Name: d97c9b7593baa2f760eb1dcc8ef1433dd40514b6
* * generic/tclBasic.c: slight cleanupmsofer2008-08-093-51/+64
| | | | | | | * generic/tclCompile.h: * generic/tclExecute.c: FossilOrigin-Name: 62fd40602cc65026be02ba5d421215ba4a6bbf1a
* (PushMethodCallFrame): fix uninitialized efi name fielddas2008-08-091-1/+2
| | | FossilOrigin-Name: d6b7e738875048cdf4755b4263bc9306cce82b7b
* fix warningsdas2008-08-091-17/+18
| | | FossilOrigin-Name: ed57ce2e849b4f6dc5a063cb245c3cc3408be250
* generic/tclExecute.c formatting only: remove spaces at the end of a every ↵nijtmans2008-08-073-57/+57
| | | | | | | | | | | | | | | | | line generic/tclConfig.c make the internal cfg variable const. generic/tclTrace.c add a "const" keyword, allowing the "traceSubCmds[]" array to be placed by the C- compiler in a code segment in stead of a data segment Those harmless changes are as a preparation for a future change proposal. Unfortunately, my (Eclipse) editor automatically removes spaces at the end of every line. Creating a patch for this proposal should not contain unrelated harmless changes, so therefore this separate check-in. No change in functionality. No risk. FossilOrigin-Name: 697472b8f78e61ec141e6ad509bd8df1fb9229e7
* small modif of last commitmsofer2008-08-071-10/+7
| | | FossilOrigin-Name: acc1ffd67769cb3e8e49a634a200246839bcec90
* * generic/tclBasic.c: Fix tailcalls falling out of tebc intomsofer2008-08-073-12/+27
| | | | | | | * generic/tclExecute.c: Tcl_EvalEx [Bug 2017946] * generic/tclInt.h: FossilOrigin-Name: 46bf23d87d2762eb40a1803158079cc079e4fde7
* * generic/tclOO.c: Revised TclOO's check for an interpdgp2008-08-061-2/+2
| | | | | | | | | | | | being deleted during handling of object command deletion. The old code was relying on documented features of command delete traces that do not in fact work. [Bug 2039178]. * tests/oo.test (oo-26.*): Added tests that demonstrate failure of TclOO to check for various kinds of invalid bytecode during method dispatch. [Bug 2037727]. FossilOrigin-Name: dc2c6d9a11f5bcabee1e0acb8aecc5fd2af4de15
* * generic/tclVar.c (TclLookupSimpleVar): fix bug that the coremsofer2008-08-061-3/+2
| | | | | | | | could not trigger before TclOO: the number of locals was being read from the Proc, which can under some circumstance be out of sync with the localCache's. FossilOrigin-Name: 85d2692b6eadf458858eefb1ca51c2bf4b544a92
* * generic/tclExecute.c: Fix for [Bug 2038069] by dgp.msofer2008-08-051-2/+3
| | | | | | * tests/execute.test: FossilOrigin-Name: c1ff7f20d14cfa1bf654bde19e1462b2e4a62477
* fix "bad stack top" bug in last commitmsofer2008-08-041-1/+5
| | | FossilOrigin-Name: 05bc3e14e1484eafadb97728dc95f823a9fbe153
* duh ... committed only the ChangeLog entry, not the restmsofer2008-08-044-67/+77
| | | FossilOrigin-Name: 4fee944e9facb03baf770353fdbc0f5420e6a8f8
* * generic/tclExecute.c: Stopped faulty double-logging of errors todgp2008-08-041-1/+11
| | | | | | | | * tests/execute.test: stack trace when a compile epoch bump triggers fallback to direct evaluation of commands in a compiled script. [Bug 2037338] FossilOrigin-Name: 9f82f568c08db5aa81f37094f3b2535bc87b0d18
* made function staticmsofer2008-08-032-4/+3
| | | FossilOrigin-Name: d643a1a461586658cbd55493cefc3d0f4ae2c187
* remove unneeded declarationmsofer2008-08-031-2/+1
| | | FossilOrigin-Name: 76b729dcd7a048fa9588bc4372623a435eaf879d
* * generic/tclBasic.c: new unsupported command atProcExitmsofer2008-08-036-111/+180
| | | | | | | | | | | * generic/tclCompile.h: that shares the implementation with * generic/tclExecute.c: tailcall. Fixed a segfault in * generic/tclInt.h: tailcalls. Tests added. * generic/tclInterp.c: * generic/tclNamesp.c: * tests/unsupported.test: FossilOrigin-Name: 95e85cbce2128bf3ecdaddfa5bef9bbbf6242789
* * doc/Exit.3: do not call Tcl_Finalize implicitlyhobbs2008-08-011-3/+4
| | | | | | | | | * generic/tclEvent.c: on DLL_PROCESS_DETACH as it may lead * win/tclWin32Dll.c (DllMain): to issues and the user should be explicitly calling Tcl_Finalize before unloading regardless. Clarify the docs to note the explicit need in embedded use. FossilOrigin-Name: 5f526d80a67b633e5573362c4c8a458db005ad8c
* * generic/tclBasic.c: Revised timing of the CmdFrame stack managementdgp2008-08-011-12/+17
| | | | | | | | | | * tests/info.test: in TclEvalEx so that the CmdFrame will still be on the stack at the time Tcl_LogCommandInfo is called to append another level of -errorinfo information. Sets the stage to add file and line data to the stack trace. Added test to check that [info frame] functioning remains unchanged by the revision. FossilOrigin-Name: b561aa93857d93ed66a682be572a9d0874f3d420
* tclNRE.h die die diedas2008-07-311-0/+0
| | | FossilOrigin-Name: 9e690fa22aaaf0c64b5f5f3c2677f870ded73a73
* nr-enabling [for]; [while] made to reuse [for]'s infrastructure.msofer2008-07-314-82/+99
| | | FossilOrigin-Name: 1b9a54b876dc3b36dc3252ef8f1bd4a81bb807b0
* nr-enabling [while]msofer2008-07-313-25/+52
| | | FossilOrigin-Name: 091d0a6c545e6187cf4693f27eef0335fa05a569
* nr-enabling [if]msofer2008-07-313-7/+18
| | | FossilOrigin-Name: 591a2cece4fa1d8f39259b0775c21615d0f9ab16
* * generic/tclBasic.c: NR-enabling [catch]msofer2008-07-313-6/+34
| | | | | | | | * generic/tclCmdAH.c: * generic/tclInt.h: * tests/NRE.test: FossilOrigin-Name: fe6fa5b7a76cd1e6b0ad64b595f021adb7e2677c
* Dumped tclNRE.h's contents into tclInt.h. The file is now empty andmsofer2008-07-3111-116/+89
| | | | | | | | unrefernced everywhere but in macosx/Tcl.xcodeproj/project.pbxproj: some knowledgeable maintainer please remove tclNRE.h after making sure it doesn't break the build on macosx FossilOrigin-Name: 451dda69d6e65267f856ee1657e610ea408eb1c3
* restricting usage and avoiding panics in [tailcall]msofer2008-07-312-67/+41
| | | FossilOrigin-Name: 5bce68bce82bb1f1f5bf2c4bf0f23165aee7c0e6
* fix macro that gcc swallows but msvc doesn'tmsofer2008-07-311-7/+9
| | | FossilOrigin-Name: 948cd763ef2626e4845519b9b2332f15e3441280
* * generic/tclBasic.c: Improved tailcalls and tests.msofer2008-07-314-70/+109
| | | | | | | | | * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclTest.c: * tests/NRE.test: FossilOrigin-Name: 5b619c2fb303d629f89c18cfd5bc114a34e0e62d
* * generic/tclBasic.c (TclNREvalObjEx): new comments and code reorgmsofer2008-07-301-77/+89
| | | | | | to clarify what is happening. FossilOrigin-Name: 225f31d075810ff3b0e15106f246c1dc5fcfaab8
* fixing last commitmsofer2008-07-301-2/+2
| | | FossilOrigin-Name: bc709993b9ca6d0f659370f78a9c70df23806cfa
* * generic/tclBasic.c: guard against the value of iPtr->evalFlagsmsofer2008-07-301-3/+4
| | | | | | | changing between the times where TEOV and TEOV_exception run. Thanks dgp for catching this. FossilOrigin-Name: b3662912c2366b5a0bcf4f5871cd841691432b1a
* a timid start at cleaning upmsofer2008-07-293-97/+68
| | | FossilOrigin-Name: 303d8d03a958955ffbc083848ca20458363ed1dd
* * generic/tclBasic.c: Made use of the thread's alloc cachemsofer2008-07-294-32/+102
| | | | | | | | | | | * generic/tclInt.h: stored in the ekeko at interp creation * generic/tclNRE.h: to avoid hitting the TSD each time an * generic/tclThreadAlloc.c: NRE callback is pushed or pulled; the approach is suitably general to extend to evry other obj allocation where an interp is know; this is left for some other time, requires a lot of grunt work. FossilOrigin-Name: 1a3aa54ccf74aa3861453ae9462d94c7f120f2e0
* * generic/tclExecute.c: fix [Bug 2030670] that causemsofer2008-07-291-5/+6
| | | | | | | TclStackRealloc to panic on rare corner cases. Thx ajpasadyn for diagnose and patch. FossilOrigin-Name: 63fdc405dd7f3ea6dd72716c5101a526003b5d17
* fix macromsofer2008-07-291-2/+2
| | | FossilOrigin-Name: 266312a39b2e650585df762d541661f3c38dba31
* Completely revamped NRE implementation, with (almost) unchanged API.msofer2008-07-2916-1199/+641
| | | FossilOrigin-Name: 4c5c243ec39b9eca18031add6602feb4534a6210
* * 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*** FossilOrigin-Name: 246dcb287a9d07013c2f642ea91f537f076a18e8
* * 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. FossilOrigin-Name: 076818a1d9246110150d9094a92bb47fd0475ab7
* Remove unnecessary hack.dkf2008-07-271-8/+2
| | | FossilOrigin-Name: 697475bbe27a42ea072932f7444845b23859ace7
* * 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*** FossilOrigin-Name: 4f99dac9fd9e8c3cad5772fdaff95f8bc8fd660a