summaryrefslogtreecommitdiffstats
path: root/generic/tclResult.c
Commit message (Collapse)AuthorAgeFilesLines
* Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-1/+1
| | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* Merge 8.6jan.nijtmans2020-09-281-4/+4
|\
| * Eliminate many "register" keywords (which do nothing with modern compilers)jan.nijtmans2020-09-141-14/+14
| | | | | | Eliminate many unnecessary type-casts to (unsigned)
* | Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> ↵jan.nijtmans2020-09-171-9/+11
| | | | | | | | TclNewIntObj or Tcl_NewWideIntObj)
* | Merge 8.6jan.nijtmans2020-04-141-1/+10
|\ \ | |/
| * Merge 8.5. Failing tests highlight ticket [1b1f5f0b53].dgp2020-04-131-1/+10
| |\
| | * Same trouble fixed the same way in Tcl_AppendElement().dgp2020-04-091-1/+10
| | |
| * | Use _copysign on Windows always (available from float.h). Use mp_iszero() ↵jan.nijtmans2020-01-081-2/+2
| |\ \ | | |/ | | | | | | whenever appropriate.
| | * * generic/tclResult.c (ResetObjResult): Correct failure to cleardgp2011-03-081-5/+7
| | | | | | | | | invalid intrep. Thanks to Colin McDonald. [Bug 3202905]
* | | Merge 8.7jan.nijtmans2020-02-131-4/+2
|\ \ \
| * | | TIP #559 follow-up: Make sure that if Tcl_FreeResult() is used in an ↵jan.nijtmans2020-01-251-4/+2
| | | | | | | | | | | | | | | | | | | | extension compiled with -DTCL_NO_DEPRECATED, this results in a link error. Do the same with deprecated funcions from other TIP's.
* | | | Merge 8.7jan.nijtmans2020-01-071-19/+13
|\ \ \ \ | |/ / /
| * | | Some eol whitespace eliminationsjan.nijtmans2020-01-071-2/+2
| | | |
| * | | Merge 8.6jan.nijtmans2020-01-061-19/+13
| |\ \ \ | | |/ /
| | * | Fix documentation, comments, and argument names of Tcl_TransferResult().dgp2020-01-051-19/+13
| | | |
* | | | Merge tip-548jan.nijtmans2019-08-151-13/+13
|\ \ \ \ | |/ / /
| * | | Merge 8.7jan.nijtmans2019-08-141-4/+4
| |\ \ \
| * | | | Eliminate "register" keyword _everywhere_ in Tcl. This keyword is deprecated ↵jan.nijtmans2019-07-171-13/+13
| | | | | | | | | | | | | | | | | | | | in C++ (removed in C++17, even), and essentially does nothing with most modern compilers.
* | | | | Merge 8.7. Continue implementation for win32jan.nijtmans2019-08-021-4/+4
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Eliminate the use of C++ keywords as variable names. Nothing more than ↵jan.nijtmans2019-07-231-4/+4
| |/ / / | | | | | | | | | | | | rename the variables in something else.
* | | | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-9/+9
|/ / /
* | | If compiling with -DTCL_NO_DEPRECATED, make Tcl_GetStringResult() a macro. ↵jan.nijtmans2019-05-091-5/+1
| | | | | | | | | | | | | | | This opens up one more simplification for Tcl 9. Compile the load-test dll's/so's with -DTCL_NO_DEPRECATED
* | | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-1/+1
| | | | | | | | | | | | and (unsigned) type-casts, which don't make sense any more.
* | | Take the next step in TIPs 330 and 336, ending in 8.7 the USE_INTERP_RESULT anddgp2018-03-051-17/+0
| | | | | | | | | USE_INTERP_ERRORLINE directives to escape need to migrate to 8.6 interfaces.
* | | 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
| | |