summaryrefslogtreecommitdiffstats
path: root/generic/tclResult.c
Commit message (Collapse)AuthorAgeFilesLines
* Re-base TIP #422 implementation to trunk. Remove Tcl_VarEvalVA() as well. ↵jan.nijtmans2017-11-071-75/+28
|\ | | | | | | TIP #422 is adapted accordingly.
| * TIP 422 implementation (rebase of branch novem-remove-va to trunk).dgp2017-11-011-92/+28
| |\
| | * merge novemjan.nijtmans2013-03-061-102/+2
| | |\
| | | * Merge trunk. jan.nijtmans2013-02-191-100/+0
| | | |\ | | | | | | | | | | Tranform Tcl_SaveResult/Tcl_RestoreResult/Tcl_DiscardResult to macros, and remove them from the stub table
| | | * \ merge trunkjan.nijtmans2013-01-251-1/+1
| | | |\ \ | | | | |/ | | | | | Add -Wwrite-strings to compiler options, so we can guarantee correct "const" usage.
| | | * | remove unnecessary struct names, which only pollute the "struct" namespace ↵jan.nijtmans2012-12-211-1/+1
| | | |\ \ | | | | | | | | | | | | | | | | | | for the compiler.
| | | | * | remove unnecessary struct names, which only pollute the "struct" namespace ↵jan.nijtmans2012-08-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | for te compiler.
| | * | | | Remove all VA functions Tcl_AppendResultVA, Tcl_AppendStringsToObjVA, ↵jan.nijtmans2012-12-181-75/+28
| | |/ / / | | | | | | | | | | | | | | | Tcl_SetErrorCodeVA, Tcl_PanicVA, and dependancy of tcl.h on <stdarg.h>. TIP required.
| | * | | Initialize legacyFreeProc with invalid value: This will result injan.nijtmans2012-12-031-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | a crash immediately, when an extention tries to call it, in stead of crashing some time later.... Remove some more legacy regarding accessing interp->result
| | * | | merge trunkdgp2012-11-161-40/+48
| | |\ \ \ | | | |/ /
| | * | | Clean version of changes; ifdef-freedkf2012-04-191-352/+6
| | | | |
| | * | | Experimental branch where the interp->result field and related are removeddgp2012-04-181-0/+52
| | | | | | | | | | | | | | | | | | | | and all simplifications that makes possible are done. Seems this can at best be a Tcl 9 reform.
* | | | | Simplify implementation of ↵jan.nijtmans2017-10-311-3/+3
| | | | | | | | | | | | | | | | | | | | Tcl_SaveResult/Tcl_RestoreResult/Tcl_DiscardResult by no longer assuming that Tcl_SavedResult is a struct. Backported from "novem" branch.
* | | | | tidydgp2017-10-301-1/+4
| | | | |
* | | | | Patch to make changes to Tcl 9 prescribed by TIPs 330 and 336.dgp2017-10-301-356/+12
|/ / / / | | | | | | | | | | | | This makes the Tcl_Interp struct fully opaque. No interp->result or interp->errorline
* | | | If Tcl is compiled with -DTCL_NO_DEPRECATED, make sure that ↵jan.nijtmans2017-03-171-1/+1
| | | | | | | | | | | | | | | | iPtr->(resultSpace|appendResult|appendAvl|appendUsed) are not used any more.
* | | | In TclGetNumberFromObj() macro (tclExecute.c): Don't fill in type if ↵jan.nijtmans2017-02-031-2/+2
| | | | | | | | | | | | | | | | | | | | TCL_ERROR is returned: The caller doesn't do anything with this. Don't access (non-const) variable tclEmptyStringRep any more, use its value (&tclEmptyString) directly. Only keep it in tclPkg.c, for error checking.
* | | | If TCL_NO_DEPRECATED is defined, remove the "case" statement, and use much ↵jan.nijtmans2017-01-251-13/+42
| | | | | | | | | | | | | | | | less interp->result. Implementation mostly taken over from "novem". If TCL_NO_DEPRECATED is not defined, nothing changes.
* | | | typo in comment. Eliminate unnecessary end-of-line spacing.jan.nijtmans2015-10-191-2/+2
| | | |
* | | | Allow successfull compilation, even if Tcl_GetErrorLine/Tcl_SetErrorLine are ↵jan.nijtmans2013-07-051-0/+2
| | | | | | | | | | | | | | | | redefined as macros.
* | | | Allow Tcl to be compiled even if Tcl_Eval, Tcl_GetVar, ... are macros.jan.nijtmans2013-02-281-0/+3
| |_|/ |/| |
* | | Eliminate some unneeded usages of Tcl_SetResult, Tcl_AddObjErrorInfojan.nijtmans2013-01-251-1/+1
| |/ |/| | | Fix "make test-packages" on cygwin
* | Minor changes to improve style (C89 declarations, consistent indentation,dkf2012-08-071-24/+33
| | | | | | | | clarification of #endifs, reduction of unnecessary casts, use of array syntax for reading array elements, etc.)
* | more result generation conversiondkf2012-08-031-23/+20
|/
* [Bug 3386417] avoid a reference loop between the bytecode and its companion ↵ferrieux2011-08-091-0/+23
| | | | errostack when compiling a syntax error.
* TclFreeIntRep() cleanup.dgp2011-04-271-1/+0
|
* More generation of error codes (namespace creation, path normalization,dkf2011-04-031-6/+9
| | | pipeline creation, package handling, procedures, [scan] formats)
* Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-6/+6
| | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* * generic/tclResult.c (ResetObjResult): Correct failure to cleardgp2011-03-081-5/+7
| | | invalid intrep. Thanks to Colin McDonald. [Bug 3202905]
* USE_DIRECT_INTERP_RESULT_ACCESS -> USE_INTERP_RESULT [TIP 330].dgp2011-03-031-2/+2
|
* 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/tclNamespace.c (TclTeardownNamespace): Tcl_Obj-ifieddgp2004-09-301-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/namespace.test (namespace-8.5,6): the save/restore of ::errorInfo and ::errorCode during global namespace teardown. Revised the comment to clarify why this is done, and added tests that will fail if this is not done. * generic/tclResult.c (TclTransferResult): Added safety checks so that unexpected undefined ::errorInfo or ::errorCode will not lead to a segfault. * generic/tclVar.c (CallVarTraces): Save/restore the flag * tests/var.test (var-16.1): values that define part of the interpreter state during variable traces. [Bug 10381021].
| | * * generic/tclPreserve.c: In Result and Preserve'd routines, do nothobbs2003-07-161-13/+7
| | | | | | | | | | | | | | | * generic/tclUtil.c: assume that ckfree == free, as that is not * generic/tclResult.c: always true. [Bug 756791] (fuller)
| * | * generic/tclResult.c: [Bug 2383005] Revise [return -errorcode] sodgp2010-03-241-1/+21
| | | | | | | | | | | | * tests/result.test: that it rejects illegal non-list values.
* | | * generic/tclBasic.c, generic/tclClock.c, generic/tclEncoding.c,dkf2010-10-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEnv.c, generic/tclLoad.c, generic/tclNamesp.c, * generic/tclObj.c, generic/tclRegexp.c, generic/tclResolve.c, * generic/tclResult.c, generic/tclUtil.c, macosx/tclMacOSXFCmd.c: More purging of strcpy() from locations where we already know the length of the data being copied.
* | | * generic/tclOOMethod.c (ProcedureMethodCompiledVarConnect):hobbs2010-09-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclVar.c (TclLookupSimpleVar, CompareVarKeys): * generic/tclPathObj.c (Tcl_FSGetNormalizedPath, Tcl_FSEqualPaths): * generic/tclExecute.c (TclExecuteByteCode): * generic/tclIOUtil.c (TclFSCwdPointerEquals): peephole opt * generic/tclResult.c (TclMergeReturnOptions): use memcmp where applicable as possible speedup on some libc variants.
* | | TIP #348 IMPLEMENTATION - Substituted error stackferrieux2010-04-051-2/+81
| | |
* | | [FRQ 2974744]: share exception codes (ObjType?):nijtmans2010-03-301-50/+1
| | | | | | | | | | | | further optimization, making use of indexType.
* | | [Freq 2974744] share exception codes (ObjType?)nijtmans2010-03-271-22/+53
| | |
* | | * generic/tclResult.c: [Bug 2383005] Revise [return -errorcode] sodgp2010-03-241-1/+23
| | | | | | | | | | | | * tests/result.test: that it rejects illegal non-list values.
* | | More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-16/+24
| | |
* | | Revert mistaken commitdgp2009-11-161-7/+2
| | |
* | | (forward port) Fix [Bug 2891556] and improve test to detect similar ↵ferrieux2009-11-161-2/+7
| | | | | | | | | | | | manifestations in the future. Add tcltest support for finalization.
* | | move variable "length" inside if()nijtmans2008-12-171-4/+3
| | | | | | | | | | | | | | | don't use ckfree((void *)...) but ckfree((char *)...)
* | | Implement TIP#307.dkf2008-12-051-3/+3
| | |
* | | TIP #336 IMPLEMENTATIONdgp2008-12-021-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.decls: New routines Tcl_(Get|Set)ErrorLine. * generic/tcl.h: Dropped default access to interp->errorLine. * generic/tclCmdAH.c: Restore it with -DUSE_INTERP_ERRORLINE. * generic/tclCmdMZ.c: Updated callers. * generic/tclDictObj.c: * generic/tclIOUtil.c: * generic/tclNamesp.c: * generic/tclOOBasic.c: * generic/tclOODefinedCmds.c: * generic/tclOOMethod.c: * generic/tclProc.c: * generic/tclResult.c: * generic/tclDecls.h: make genstubs * generic/tclStubInit.c:
* | | Style improvements - invoking callbacks without visual junk.dkf2008-10-261-7/+7
| | |
* | | Add "const" to many internalnijtmans2008-10-161-2/+2
| | | | | | | | | | | | | | | const tables. No functional or API change.