summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
Commit message (Collapse)AuthorAgeFilesLines
...
* s/Tcl_PanicEx/TclPanic/; improve clang assert Tcl_Panic macrologydas2009-06-301-3/+3
|
* * generic/tclInt.h: add assert macros for clang staticdas2009-06-301-1/+15
| | | | | | | | | * 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.
* Apply patch from [Bug 988703]. Many thanks to Joe Mistachkin for development.dkf2009-06-181-3/+5
|
* Fix [Bug 2414858].dkf2009-05-081-1/+2
|
* * generic/tclBasic.c: fixed "leaks" in aliases, imports andMiguel Sofer2009-03-211-1/+2
| | | | | | | * generic/tclInt.h: ensembles. Only remaining known leak * generic/tclInterp.c: is in ensemble unknown dispatch (as it * generic/tclNamesp.c: not NR-enabled) * tests/tailcall.test:
* * tclInt.h: commentsMiguel Sofer2009-03-211-4/+2
| | | | | | * tests/tailcall.test: added tests to show that [tailcall] does not currently always execute in constant space: interp-alias, ns-imports and ensembles "leak" as of this commit.
* * generic/tclBasic.c: Fix for (among others) [Bug 2699087]Miguel Sofer2009-03-211-1/+5
| | | | | | | | | * generic/tclCmdAH.c: Tailcalls now perform properly even from * generic/tclExecute.c: within [eval]ed scripts. * generic/tclInt.h: More tests missing, as well as proper exploration and testing of the interaction with "redirectors" like interp-alias (suspect that it does not happen in constant space) and pure-eval commands.
* * generic/tcl.h:Miguel Sofer2009-03-191-6/+43
| | | | | | | | | | | | | | * generic/tclInt.h: * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclNamesp.c (Tcl_PopCallFrame): Rewritten tailcall implementation, ::unsupported::atProcExit is (temporarily?) gone. The new approach is much simpler, and also closer to being correct. This commit fixes [Bug 2649975] and [Bug 2695587]. * tests/coroutine.test: Moved the tests to their own files, * tests/tailcall.test: removed the unsupported.test. Added * tests/unsupported.test: tests for the fixed bugs.
* Move the implementation of [try] from Tcl to C. Not yet bytecoded.dkf2009-03-091-1/+5
|
* * generic/tclStringObj.c: Rewrites of the routinesdgp2009-02-131-1/+26
| | | | | | | | | | | Tcl_GetCharLength, Tcl_GetUniChar, Tcl_GetUnicodeFromObj, Tcl_GetRange, and TclStringObjReverse to use the new macro, and to more simply and clearly split the cases depending on whether a valid unicode rep is present or needs to be created. * generic/tclInt.h: New macro TclNumUtfChars meant to be a faster replacement for a full Tcl_NumUtfChars() call when the string has all single-byte characters.
* Added missing declaration of tclCmdNameTypedkf2009-02-031-1/+2
|
* Fix [Bug 1028264]: WSACleanup() too early. The fix introduces "late exit ↵ferrieux2009-01-271-1/+5
| | | | handlers" for similar late process-wide cleanups.
* CONSTify TclPrintInstruction and TclpNativeJoinPath (TIP #27)nijtmans2009-01-221-2/+2
| | | | | {unix win} in *.decls is equivalent to {generic} tclGetDate.y, tclDate.c: single internal const decoration
* Move [throw] implementation into C.dkf2009-01-131-1/+3
|
* Comment formatting improvements.dkf2009-01-061-102/+113
|
* Make [source] NRE-aware to enable [yield]. [Bug 2412068]dkf2009-01-051-3/+5
|
* First hack at TIP#234dkf2008-12-111-1/+2
|
* TIP #343 IMPLEMENTATION - A Binary Specifier for [format/scan]ferrieux2008-12-101-1/+3
|
* Implement TIP#307.dkf2008-12-051-3/+1
|
* Implementation of TIP #210.dkf2008-11-291-1/+4
|
* rename static function FSUnloadTempFile tonijtmans2008-11-131-1/+2
| | | | | | TclFSUnloadTempFile, needed in tclLoad.c Fixed [Bug 2269431]: load of shared objects leaves temporary files on windows
* patch #2215022: clean up the binary ensemble initialization codepatthoyts2008-11-071-5/+6
| | | | | Applied a patch from Duoas which extends the TclMakeEnsemble command to handle sub-ensembles from tables. Cleaned up the original patch a bit.
* Add "const" to many internalnijtmans2008-10-151-29/+29
| | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* CONSTify char* DTrace probe argumentsdas2008-10-101-1/+4
|
* * generic/tclBasic.c: Move [tailcall], [coroutine] andMiguel Sofer2008-10-071-1/+3
| | | | | | * generic/tclCmdIL.c: [yield] out of ::tcl::unsupported * tests/info.test: and into global scope: TIPs #327 * tests/unsupported.test: and #328
* Implemented TIP#195 - tcl::prefix command. [Patch 1040206]dkf2008-10-031-1/+2
|
* * generic/tclBasic.c: Fix the numLevels computations onMiguel Sofer2008-09-281-1/+4
| | | | | * generic/tclInt.h: coroutine yield/resume * tests/unsupported.test:
* simplify TCL_CT_ASSERTMiguel Sofer2008-09-181-4/+2
|
* * generic/tclExecute.c (NEXT_INST_F):Miguel Sofer2008-09-181-18/+20
| | | | | * generic/tclInt.h (TCL_CT_ASSERT): new compile-time assertions, adapted from www.pixelbeat.org/programming/gcc/static_assert.html
* * generic/tclInt.h: Correct the TclGetLongFromObj,dgp2008-09-171-4/+4
| | | | | | TclGetIntFromObj, and TclGetIntForIndexM macros so that they retrieve the internalRep.longValue field instead of casting the internalRep.otherValuePtr field to type long.
* NRE-enable non-compiled [foreach]. [Bug 2017632]dkf2008-08-241-1/+2
|
* NRE-enable the ensemble creator (add extra field!)dkf2008-08-231-208/+198
| | | | Arrange for [dict for] to be NRE-enabled when not compiled. [Bug 2017632]
* * generic/tclBasic.c: Previous fix, now done right.Miguel Sofer2008-08-211-2/+1
| | | | | | * generic/tclCmdIL.c: * generic/tclInt.h: * tests/unsupported.test:
* * generic/tclBasic.c: Fix the cmdFrame level count inMiguel Sofer2008-08-211-1/+2
| | | | | * generic/tclCmdIL.c: coroutines. Fix small bug on coroutine * generic/tclInt.h: rewind.
* Fix performance bug introduced by fix of [Bug 2037727]dkf2008-08-201-4/+8
|
* * generic/tclBasic.c: Implementation of [coroutine] and [yield]Miguel Sofer2008-08-171-3/+35
| | | | | | | | * generic/tclCmdAH.c: commands (in tcl::unsupported). * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclInt.h: * tests/unsupported.test:
* * 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:
* * generic/tclBasic.c: Fix tailcalls falling out of tebc intoMiguel Sofer2008-08-071-1/+6
| | | | | * generic/tclExecute.c: Tcl_EvalEx [Bug 2017946] * generic/tclInt.h:
* remove unneeded declarationMiguel Sofer2008-08-031-2/+1
|
* * generic/tclBasic.c: new unsupported command atProcExitMiguel Sofer2008-08-031-5/+4
| | | | | | | | | * 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:
* nr-enabling [for]; [while] made to reuse [for]'s infrastructure.Miguel Sofer2008-07-311-1/+3
|
* nr-enabling [while]Miguel Sofer2008-07-311-1/+3
|
* nr-enabling [if]Miguel Sofer2008-07-311-1/+2
|
* * generic/tclBasic.c: NR-enabling [catch]Miguel Sofer2008-07-311-1/+2
| | | | | | * generic/tclCmdAH.c: * generic/tclInt.h: * tests/NRE.test:
* Dumped tclNRE.h's contents into tclInt.h. The file is now empty andMiguel Sofer2008-07-311-1/+66
| | | | | | 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
* * generic/tclBasic.c: Made use of the thread's alloc cacheMiguel Sofer2008-07-291-23/+80
| | | | | | | | | * 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.
* Completely revamped NRE implementation, with (almost) unchanged API.Miguel Sofer2008-07-291-13/+11
|
* just a few const -> CONST (in header files and .decls files)nijtmans2008-07-241-8/+8
| | | | and CONST -> const (.c files and internal .h files)
* * generic/tclBasic.c: Reworked the handling of bytecode literalsandreas_kupries2008-07-221-1/+19
| | | | | | | | | | * 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-221-1/+3
| | | | | * generic/tclExecute.c: let GetCommandSource use it. This solves * generic/tclInt.h: [Bug 2017146]. Thx dgp for the analysis.