summaryrefslogtreecommitdiffstats
path: root/generic/tclTrace.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-13 14:59:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-13 14:59:43 (GMT)
commit3fc1392c92078e35e6a35efc90ce598c1c2fc192 (patch)
tree5b6f3de70fca08f3638540445bd5f25b522f87b6 /generic/tclTrace.c
parent81e7623b785648f4b7c7ffdd8f1647c876bd4c45 (diff)
downloadtcl-3fc1392c92078e35e6a35efc90ce598c1c2fc192.zip
tcl-3fc1392c92078e35e6a35efc90ce598c1c2fc192.tar.gz
tcl-3fc1392c92078e35e6a35efc90ce598c1c2fc192.tar.bz2
More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in stead of Tcl_NewIntObj()
Diffstat (limited to 'generic/tclTrace.c')
-rw-r--r--generic/tclTrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclTrace.c b/generic/tclTrace.c
index 0228aff..c82fc14 100644
--- a/generic/tclTrace.c
+++ b/generic/tclTrace.c
@@ -278,7 +278,7 @@ Tcl_TraceObjCmd(
return TCL_ERROR;
}
- opsList = Tcl_NewObj();
+ TclNewObj(opsList);
Tcl_IncrRefCount(opsList);
flagOps = Tcl_GetStringFromObj(objv[3], &numFlags);
if (numFlags == 0) {
@@ -322,7 +322,7 @@ Tcl_TraceObjCmd(
Tcl_WrongNumArgs(interp, 2, objv, "name");
return TCL_ERROR;
}
- resultListPtr = Tcl_NewObj();
+ TclNewObj(resultListPtr);
name = Tcl_GetString(objv[2]);
FOREACH_VAR_TRACE(interp, name, clientData) {
TraceVarInfo *tvarPtr = clientData;
@@ -967,7 +967,7 @@ TraceVariableObjCmd(
return TCL_ERROR;
}
- resultListPtr = Tcl_NewObj();
+ TclNewObj(resultListPtr);
name = Tcl_GetString(objv[3]);
FOREACH_VAR_TRACE(interp, name, clientData) {
Tcl_Obj *opObjPtr, *eachTraceObjPtr, *elemObjPtr;
@@ -1852,7 +1852,7 @@ TraceExecutionProc(
* Append result code.
*/
- resultCode = Tcl_NewIntObj(code);
+ TclNewIntObj(resultCode, code);
resultCodeStr = Tcl_GetString(resultCode);
Tcl_DStringAppendElement(&cmd, resultCodeStr);
Tcl_DecrRefCount(resultCode);