summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.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/tclExecute.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/tclExecute.c')
-rw-r--r--generic/tclExecute.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 09fda64..13f328c 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -5076,7 +5076,7 @@ TEBCresume(
if (toIdx == TCL_INDEX_NONE) {
emptyList:
- objResultPtr = Tcl_NewObj();
+ TclNewObj(objResultPtr);
TRACE_APPEND(("\"%.30s\"", O2S(objResultPtr)));
NEXT_INST_F(9, 1, 1);
}
@@ -5336,7 +5336,7 @@ TEBCresume(
* practical use.
*/
if (ch == -1) {
- objResultPtr = Tcl_NewObj();
+ TclNewObj(objResultPtr);
} else {
length = Tcl_UniCharToUtf(ch, buf);
if ((ch >= 0xD800) && (length < 3)) {
@@ -7046,7 +7046,7 @@ TEBCresume(
break;
}
if (valuePtr == NULL) {
- Tcl_DictObjPut(NULL, dictPtr, OBJ_AT_TOS,Tcl_NewIntObj(opnd));
+ Tcl_DictObjPut(NULL, dictPtr, OBJ_AT_TOS, Tcl_NewWideIntObj(opnd));
} else {
TclNewIntObj(value2Ptr, opnd);
Tcl_IncrRefCount(value2Ptr);
@@ -9719,7 +9719,7 @@ EvalStatsCmd(
#define Percent(a,b) ((a) * 100.0 / (b))
- objPtr = Tcl_NewObj();
+ TclNewObj(objPtr);
Tcl_IncrRefCount(objPtr);
numInstructions = 0.0;