summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
Commit message (Collapse)AuthorAgeFilesLines
* merge trunkjan.nijtmans2013-08-141-35/+3
|\
| * Remove Tcl_Preserve support for ContLineLoc values. It's not needed.dgp2013-08-071-35/+3
| | | | | | This allows the clLoc field of CompileEnv struct to go away too.
* | restore all #ifdef TCL_WIDE_INT_IS_LONG, which were accidently removed in ↵jan.nijtmans2013-08-141-0/+35
| | | | | | | | [19ff9b95e1]
* | merge trunkjan.nijtmans2013-05-061-35/+0
|\ \ | |/
* | Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as ↵jan.nijtmans2013-04-231-17/+17
|\ \ | |/ | | | | TCL_WIDE_INT_IS_LONG
| * Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as ↵jan.nijtmans2013-04-231-17/+17
| |\ | | | | | | | | | | | | | | | macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication. Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as TCL_WIDE_INT_IS_LONG
| | * Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as ↵jan.nijtmans2013-04-231-4/+6
| | | | | | | | | | | | | | | macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication.
* | | Revert part of [bb4707eb077f0cd9], which removed Tcl_NewIntObj, ↵jan.nijtmans2013-04-211-6/+229
| | | | | | | | | | | | Tcl_SetIntObj, Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj from the stub table and replaced those by macros. Add those functions back were they were. Reason: the upcoming cygwin64 will change the definition of 'long', I'm not sure any more this was a good idea. More investigation needed before doing something like this in "novem".
* | | merge trunkjan.nijtmans2013-03-221-0/+12
|\ \ \ | |/ /
| * | Greater protection against double TclFreeObj() calls in TCL_MEM_DEBUG mode.dgp2013-03-111-0/+12
| |\ \ | | |/
| | * Greater protection against double TclFreeObj() calls in TCL_MEM_DEBUG mode.dgp2013-03-111-0/+12
| | |
| * | Allow Tcl to be compiled even if Tcl_Eval, Tcl_GetVar, ... are macros.jan.nijtmans2013-02-281-2/+5
| | |
* | | merge trunk. jan.nijtmans2013-02-271-1/+6
|\ \ \ | |/ / | | | Implement Tcl_VarTraceInfo and Tcl_UpVar as macro.
| * | Don't panic if Tcl_ConvertToType is called for a type that doesn't have a ↵jan.nijtmans2013-02-261-1/+6
| |\ \ | | |/ | | | | | | setFromAnyProc, create a proper error message.
| | * Don't panic if Tcl_ConvertToType is called for a type that doesn't have a ↵jan.nijtmans2013-02-261-1/+6
| | | | | | | | | | | | setFromAnyProc, create a proper error message.
* | | more Tcl_NewIntObj/Tcl_NewBooleanObj -> Tcl_NewLongObj conversionsjan.nijtmans2013-02-111-5/+5
| | |
* | | Merge trunk. jan.nijtmans2013-02-081-219/+0
|\ \ \ | |/ / | | | | | | Eliminate all usage of internal macros: TclNewIntObj, TclNewBooleanObj, TclSetIntObj, TclSetBooleanObj. Change various function to macros: Tcl_NewIntObj, Tcl_SetIntObj, Tcl_NewBooleanObj, Tcl_DbNewBooleanObj, Tcl_SetBooleanObj, Tcl_AddErrorInfo, Tcl_AddObjErrorInfo.
* | | merge trunkjan.nijtmans2013-02-041-7/+6
|\ \ \ | |/ /
| * | Eliminate all Tcl_ConvertToType calls and all direct calls to ↵jan.nijtmans2013-02-041-7/+6
| | | | | | | | | | | | typePtr->setFromAnyProc (except the call from inside the Tcl_ConvertToType function) from the Tcl core.
* | | merge trunkjan.nijtmans2013-02-031-3/+3
|\ \ \ | |/ /
| * | merge core-8-5-branchjan.nijtmans2013-01-311-3/+3
| |\ \ | | |/
| | * 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.
| | * Backport fix for [Bug 2857044].dgp2011-04-271-0/+1
| | |
* | | two more places where refCount was assumed to be a signed value. In Tcl9 ↵jan.nijtmans2012-12-291-2/+2
| | | | | | | | | | | | that will probably be not true any more.
* | | remove unnecessary struct names, which only pollute the "struct" namespace ↵jan.nijtmans2012-08-201-1/+1
|/ / | | | | | | for te compiler.
* | more result generation conversiondkf2012-08-041-21/+21
| |
* | Use Tcl_PrintfObj to generate more (complex) error messages.dkf2011-08-051-18/+9
| |
* | [Bug 3384007]: Fix some panic messages.dkf2011-08-021-25/+21
| |
* | platform portable type matching in debug printsdgp2011-07-121-4/+4
| |
* | Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+4
|\ \ | |/
| * Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+4
| |\
| | * Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+4
| | |
* | | More generation of error codes (namespace creation, path normalization,dkf2011-04-031-0/+2
| | | | | | | | | pipeline creation, package handling, procedures, [scan] formats)
* | | Reduce the number of casts used to manage Tcl_Obj internal representations.dkf2011-03-261-1/+1
| | |
* | | * generic/tclObj.c: exploit HAVE_FAST_TSD for the deletion context in ↵mig2011-03-231-0/+4
| | | | | | | | | | | | TclFreeObj()
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-26/+23
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | * generic/tclBasic.c: More replacements of Tcl_UtfBackslash() callsdgp2011-03-061-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | * generic/tclCompile.c: with TclParseBackslash() where possible. * generic/tclCompCmdsSZ.c: * generic/tclParse.c: * generic/tclUtil.c:
| * | * generic/tclBasic.c: More replacements of Tcl_UtfBackslash() callsdgp2011-03-061-1/+1
| |\ \ | | |/ | | | | | | | | | * generic/tclCompile.c: with TclParseBackslash() where possible. * generic/tclParse.c: * generic/tclUtil.c:
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | cause more harm than good. Purged them (except in zlib files).
| * | 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.
| | * * generic/tclObj.c: Plus memory leak in TclContinuationsEnter().andreas_kupries2009-11-101-1/+12
| | | | | | | | | | | | [Bug 2895323]. Backport from Tcl 8.5 branch, change by Don Porter.
| | * * generic/tclBasic.c (Tcl_CreateInterp, Tcl_EvalTokensStandard,andreas_kupries2009-08-251-1/+378
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/tclObj.c (Tcl_FindCommandFromObj): fix finding a deletedMiguel Sofer2007-10-031-2/+3
| | | | | | | | | | | | | | | | | | command; cannot trigger this from Tcl itself, but crash reported on xotcl. This check is new to 8.4 but exists in 8.5, so this is a backport or something. Thanks Gustaf Neumann.
| | * * generic/tclDTrace.d (new file): add DTrace provider for Tcl; allowsdas2007-09-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * Fix [Bug 1310081].dkf2005-11-291-1/+12
| | |
| | * silence compiler warningdgp2005-08-041-2/+2
| | |
| | * * generic/tclObj.c: Simplified routines that manage the typeTable.dgp2005-08-041-36/+25
| | |
| | * * generic/tclCompExpr.c: Untangled some dependencies in thedgp2005-08-031-10/+12
| | | | | | | | | | | | | | | | | | * generic/tclEvent.c: order of finalization routines. * generic/tclInt.h: [Bug 1251399] * generic/tclObj.c:
| | * * generic/tclGet.c (Tcl_GetInt): Corrected error that did notdgp2005-04-201-36/+17
| | | | | | | | | | | | | | | * generic/tclObj.c (Tcl_GetIntFromObj): permit 0x80000000 to be recognized as an integer on TCL_WIDE_INT_IS_LONG systems [Bug 1090869].