summaryrefslogtreecommitdiffstats
path: root/generic/tclTrace.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-17 13:48:12 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-17 13:48:12 (GMT)
commit733b7a43a45ee6be75ccd99172f66b35b69841c5 (patch)
tree2c38bde59af6c90ad19dbda96878de709d5859d0 /generic/tclTrace.c
parentbc10bf6d03a6c8685c64e36a6095e289e2b1ef33 (diff)
downloadtcl-733b7a43a45ee6be75ccd99172f66b35b69841c5.zip
tcl-733b7a43a45ee6be75ccd99172f66b35b69841c5.tar.gz
tcl-733b7a43a45ee6be75ccd99172f66b35b69841c5.tar.bz2
Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> TclNewIntObj or Tcl_NewWideIntObj)
Diffstat (limited to 'generic/tclTrace.c')
-rw-r--r--generic/tclTrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclTrace.c b/generic/tclTrace.c
index 300e0b9..1b59852 100644
--- a/generic/tclTrace.c
+++ b/generic/tclTrace.c
@@ -276,7 +276,7 @@ Tcl_TraceObjCmd(
return TCL_ERROR;
}
- opsList = Tcl_NewObj();
+ TclNewObj(opsList);
Tcl_IncrRefCount(opsList);
flagOps = TclGetStringFromObj(objv[3], &numFlags);
if (numFlags == 0) {
@@ -320,7 +320,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 = (TraceVarInfo *)clientData;
@@ -965,7 +965,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;