summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
Commit message (Collapse)AuthorAgeFilesLines
* merge 8.5dgp2014-05-011-0/+18
|\
| * Fix more corner-cases like ↵jan.nijtmans2014-05-011-0/+18
| | | | | | | | [0e92c404f19ede5b2eb06e6db27647d3138cc56|0e92c404f1]: The only place where a type of &tclByteArrayType can be trusted is when determining its length, because the character length of a (UTF-8) string is always equal to the byte length of the byte array.
* | merge 8.5dgp2014-04-241-0/+1
|\ \ | |/
| * Memory leak after thread exit, fixed (alloc cache released by exit), belong ↵sebres2014-04-221-0/+1
| | | | | | | | | | | | | | | | to ticket [3493120] Moved over to branch bug-3493120. This is not ready for the core-8-5-branch. Segfaults all over the place in a thread-enabled build on a CentOS system.
* | merge 8.5dgp2014-02-121-0/+1
|\ \ | |/
| * Change the flag value to avoid merge conflict with trunk.dgp2014-02-061-1/+1
| |
| * [a4494e28ed] Use flag bit instead of NULL pointer to suppress teardown list ofdgp2014-02-061-0/+1
| | | | | | | | | | imported commands when the original command gets re-created. This prevents the panic otherwise possible when the invalid state represented by the NULL pointer is encountered during a command delete trace.
* | Revised ReadChars to restore an attempt to make sure we do not short readdgp_may_be_pointlessdgp2014-02-061-0/+2
| | | | | | | | | | because of a false notion of limited storage space. The test suite does not appear to demonstrate any case where this matters. Could be an incomplete test suite, or an example of pointless code.
* | merge 8.5dgp2014-02-061-0/+2
|\ \ | |/
| * Refactor WriteChars() and WriteBytes() into simple wrappers of a commondgp2014-01-301-0/+2
| | | | | | routine Write().
* | Backport of bytearray append machinery to support bug fixes in ReadBytes.dgp2014-01-211-0/+2
|/
* Proposed solution for 3613609: lsort -nocase does not sort non-ASCII correctlyjan.nijtmans2013-05-211-0/+1
|
* LimitHandler struct used only locally. Remove from tclInt.h.dgp2013-02-251-29/+0
|
* Remove unused struct InterpList.dgp2013-02-251-11/+0
|
* ArraySearch struct used only locally. Remove from tclInt.h.dgp2013-02-251-24/+0
|
* Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-3/+3
| | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
* Remove unused TclpLoadFile function.jan.nijtmans2012-10-231-6/+0
|
* 3564735 Protection against namespace var resolvers that unexpectedly returnbug_3564735dgp2012-09-061-2/+6
| | | | | a pointer to Var while Tcl expects pointer to VarInHash. This may not be the total solution to Bug 3564735 (Itcl may be misbehaving), but this will prevent memory corruption.
* CONST-ification update.dgp2011-10-271-1/+1
|
* Fixed the inadvertently committed disabling of stack checks, see my ↵andreask2011-06-221-2/+0
| | | | 2010-11-15 commit [8902c8bc82].
* Remove TclCleanupLiteralTable (see 994838).dgp2011-06-021-2/+0
|
* [Bug 3185407]: Extend the set of epochs that are potentially bumped (indkf2011-06-021-4/+7
|\ | | | | | | TclInvalidateNsCmdLookup) when a command is created, for a slight performance drop (in some circumstances) and improved semantics.
| * Merge from 8.5 branch tipbug_3185407dkf2011-06-011-0/+4
| |\ | |/ |/|
* | Completed patch with mucho comments. Merge 8.5.bug_3173086dgp2011-05-101-3/+29
| |
* | Significant rewrite of the Tcl*(Scan|Convert)*Element() system, and revisionsdgp2011-03-031-0/+4
| | | | | | | | to the callers. Needs more work on comments, and testing to check for any performance impact in either direction. Fixes reported bug.
| * is this a proper fix? Or is it invalidating too much?mig2011-05-081-0/+3
| |
| * fix USE_TCLALLOC so that it can be enabled without editing the Makefilemig2011-05-071-0/+7
| |\
| | * fix USE_TCLALLOC so that it can be enabled without editing the Makefilemig2011-05-071-0/+7
| | |
| | * fix for [Bug 3288345]: Wrong Tcl_StatBuf used on MinGW. Follow-up: get it ↵jan2011-04-201-1/+1
| | | | | | | | | | | | right for cygwin and WIN64 as well.
| * | Replace TclCountSpaceRuns() with TclMaxListLength() which is the function wedgp2011-05-021-2/+2
| | | | | | | | | actually want.
| * | New utility routines: TclIsSpaceProc() and TclCountSpaceRuns()dgp2011-04-281-0/+3
| | | | | | | | | Use to replace calls to isspace() and their /* INTL */ risk.
| * | Use macro to set List intrepsdgp2011-04-211-0/+6
| | |
| * | Limits on list length were too strict. Revised panics to errors where possible.dgp2011-04-211-0/+3
| | |
| * | Define and use macros that test whether a Tcl list value is canonical.dgp2011-04-181-0/+6
| | |
| * | [Bug 3285375]: Rewrite Tcl_Concat*() and [string trim*].dgp2011-04-131-0/+4
| | |
| * | * generic/tclInt.h: Remove TclMarkList() routine, an experimentaldgp2011-03-081-3/+0
|/ / | | | | * generic/tclUtil.c: dead-end from the 8.5 alpha days.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
|\ \ | |/ | | more harm than good. Purged them.
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | more harm than good. Purged them.
| * [Bug 3030870] make itcl 3.x built with pre-8.6 work in 8.6:nijtmans2010-07-251-4/+1
| | | | | | | | revert tclInt.h to what it was before, and relax the relation between Tcl_CallFrame and CallFrame.
| * [Bug 3030870] make itcl 3.x built with pre-8.6 work in 8.6nijtmans2010-07-171-1/+4
| |
| * * generic/tclBasic.c (Tcl_CreateInterp, Tcl_EvalTokensStandard,andreas_kupries2009-08-251-2/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EvalTokensStandard, Tcl_EvalEx, EvalEx, TclAdvanceContinuations, TclEvalObjEx): * generic/tclCmdMZ.c (Tcl_SwitchObjCmd, ListLines): * generic/tclCompCmds.c (*): * generic/tclCompile.c (TclSetByteCodeFromAny, TclInitCompileEnv, TclFreeCompileEnv, TclCompileScript): * generic/tclCompile.h (CompileEnv): * generic/tclInt.h (ContLineLoc, Interp): * generic/tclObj.c (ThreadSpecificData, ContLineLocFree, TclThreadFinalizeObjects, TclInitObjSubsystem, TclContinuationsEnter, TclContinuationsEnterDerived, TclContinuationsCopy, TclContinuationsGet, TclFreeObj): * generic/tclProc.c (TclCreateProc): * generic/tclVar.c (TclPtrSetVar): * tests/info.test (info-30.0-22): Extended parser, compiler, and execution with code and attendant data structures tracking the positions of continuation lines which are not visible in script's, to properly account for them while counting lines for #280, during direct and compiled execution.
| * * generic/tclBasic.c (DeleteInterpProc,TclArgumentBCEnter,andreas_kupries2009-07-141-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TclArgumentBCRelease, TclArgumentGet): * generic/tclCompile.c (EnterCmdWordIndex, TclCleanupByteCode, TclInitCompileEnv, TclCompileScript): * generic/tclCompile.h (ExtCmdLoc): * generic/tclExecute.c (TclExecuteByteCode): * generic/tclInt.h (ExtIndex, CFWordBC): * tests/info.test (info-39.0): Backport of some changes made to the Tcl head, to handle literal sharing better. The code here is much simpler (trimmed down) compared to the head as the 8.4 branch is not bytecode compiling whole files, and doesn't compile eval'd code either. Reworked the handling of literal command arguments in bytecode to be saved (compiler) and used (execution) per command (See the TCL_INVOKE_STK* instructions), and not per the whole bytecode. This removes the problems with location data caused by literal sharing in proc bodies. Simplified the associated datastructures (ExtIndex is gone, as is the function EnterCmdWordIndex).
| * Backport fix for [Bug 1028264]: WSACleanup() too early. The fix introduces ↵ferrieux2009-04-271-1/+5
| | | | | | | | "late exit handlers" for similar late process-wide cleanups.
| * * 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: Extended the existing TIP #280 system (infoandreas_kupries2008-07-211-3/+38
| | | | | | | | | | | | | | | | | | | | | | * 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:
| * * generic/tclDTrace.d (new file): add DTrace provider for Tcl; allowsdas2007-09-131-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCompile.h: tracing of proc and command entry & * generic/tclBasic.c: return, bytecode execution, object * generic/tclExecute.c: allocation and more; with essentially * generic/tclInt.h: zero cost when tracing is inactive; * generic/tclObj.c: enable with --enable-dtrace configure * generic/tclProc.c: arg (disabled by default, will only * unix/Makefile.in: enable if DTrace is present). * unix/configure.in: [Patch 1793984] * macosx/Makefile: enable DTrace support. * unix/configure: autoconf-2.13
| * ensure WORDS_BIGENDIAN redefinition is consistent with autoconf definitiondas2007-08-231-2/+2
| |
| * * generic/tclInt.h: TclFinalizeThreadAlloc() is always defined,dgp2007-05-101-2/+2
| | | | | | | | so make sure it is also always declared.
| * * generic/tclInt.decls: Yet another round of attemptingKevin B Kenny2007-04-211-1/+2
| | | | | | | | | | | | | | | | | | * generic/tclInt.h: to get the correct type signature * unix/tclUnixPort.h: for TclpLocaltime and TclpGmtime. * unix/tclUnixTime.c: CONST TclpTime_t is a 'time_t *CONST' * win/tclWinTime.c: and not a 'CONST time_t*'! * generic/tclIntDecls.h: [Bug 1677275] * generic/tclIntPlatDecls.h: Regenerated.
| * * generic/tclBasic.c: TIP #280 implementation, conditional on the define ↵andreas_kupries2006-11-281-2/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TCL_TIP280. * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclProc.c: * tests/compile.test: * tests/info.test: * tests/platform.test: * tests/safe.test: