summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-18 14:32:41 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-18 14:32:41 (GMT)
commite52d82d888bff754f2b3c98ab0b8b11b49889292 (patch)
treeda1679bd296ab57fb2c10ce5a83d33861d477e87 /generic/tclZlib.c
parentc610c391004b3206e110cfbacb5412d6b918a305 (diff)
downloadtcl-e52d82d888bff754f2b3c98ab0b8b11b49889292.zip
tcl-e52d82d888bff754f2b3c98ab0b8b11b49889292.tar.gz
tcl-e52d82d888bff754f2b3c98ab0b8b11b49889292.tar.bz2
Eliminate some usages of Tcl_GlobalEval() and Tcl_Eval(), which are deprecated functions.
Diffstat (limited to 'generic/tclZlib.c')
-rw-r--r--generic/tclZlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index 44dd9e0..ba3e9cb 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -762,7 +762,7 @@ Tcl_ZlibStreamInit(
*/
if (interp != NULL) {
- if (Tcl_Eval(interp, "::incr ::tcl::zlib::cmdcounter") != TCL_OK) {
+ if (Tcl_EvalEx(interp, "::incr ::tcl::zlib::cmdcounter", -1, 0) != TCL_OK) {
goto error;
}
Tcl_DStringInit(&cmdname);
@@ -3816,7 +3816,7 @@ TclZlibInit(
* commands.
*/
- Tcl_Eval(interp, "namespace eval ::tcl::zlib {variable cmdcounter 0}");
+ Tcl_EvalEx(interp, "namespace eval ::tcl::zlib {variable cmdcounter 0}", -1, 0);
/*
* Create the public scripted interface to this file's functionality.