summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tcl.decls2
-rw-r--r--generic/tclDecls.h5
-rw-r--r--generic/tclInt.h2
-rw-r--r--generic/tclInterp.c6
-rw-r--r--generic/tclStubInit.c2
5 files changed, 11 insertions, 6 deletions
diff --git a/generic/tcl.decls b/generic/tcl.decls
index d08ba0a..af128bc 100644
--- a/generic/tcl.decls
+++ b/generic/tcl.decls
@@ -680,7 +680,7 @@ declare 187 {
declare 189 {
Tcl_Channel Tcl_MakeFileChannel(void *handle, int mode)
}
-declare 190 {
+declare 190 {deprecated {}} {
int Tcl_MakeSafe(Tcl_Interp *interp)
}
declare 191 {
diff --git a/generic/tclDecls.h b/generic/tclDecls.h
index 3917d0f..b75e9de 100644
--- a/generic/tclDecls.h
+++ b/generic/tclDecls.h
@@ -600,7 +600,8 @@ EXTERN int Tcl_LinkVar(Tcl_Interp *interp, const char *varName,
/* 189 */
EXTERN Tcl_Channel Tcl_MakeFileChannel(void *handle, int mode);
/* 190 */
-EXTERN int Tcl_MakeSafe(Tcl_Interp *interp);
+TCL_DEPRECATED("")
+int Tcl_MakeSafe(Tcl_Interp *interp);
/* 191 */
EXTERN Tcl_Channel Tcl_MakeTcpClientChannel(void *tcpSocket);
/* 192 */
@@ -2221,7 +2222,7 @@ typedef struct TclStubs {
int (*tcl_LinkVar) (Tcl_Interp *interp, const char *varName, void *addr, int type); /* 187 */
void (*reserved188)(void);
Tcl_Channel (*tcl_MakeFileChannel) (void *handle, int mode); /* 189 */
- int (*tcl_MakeSafe) (Tcl_Interp *interp); /* 190 */
+ TCL_DEPRECATED_API("") int (*tcl_MakeSafe) (Tcl_Interp *interp); /* 190 */
Tcl_Channel (*tcl_MakeTcpClientChannel) (void *tcpSocket); /* 191 */
char * (*tcl_Merge) (int argc, const char *const *argv); /* 192 */
Tcl_HashEntry * (*tcl_NextHashEntry) (Tcl_HashSearch *searchPtr); /* 193 */
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 0959741..db0b4f7 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -3278,6 +3278,8 @@ MODULE_SCOPE Tcl_Obj * TclLsetFlat(Tcl_Interp *interp, Tcl_Obj *listPtr,
Tcl_Obj *valuePtr);
MODULE_SCOPE Tcl_Command TclMakeEnsemble(Tcl_Interp *interp, const char *name,
const EnsembleImplMap map[]);
+MODULE_SCOPE int TclMakeSafe(Tcl_Interp *interp);
+
MODULE_SCOPE int TclMaxListLength(const char *bytes, int numBytes,
const char **endPtr);
MODULE_SCOPE int TclMergeReturnOptions(Tcl_Interp *interp, int objc,
diff --git a/generic/tclInterp.c b/generic/tclInterp.c
index d51b289..c5f84db 100644
--- a/generic/tclInterp.c
+++ b/generic/tclInterp.c
@@ -2474,7 +2474,7 @@ ChildCreate(
((Interp *) parentInterp)->maxNestingDepth;
if (safe) {
- if (Tcl_MakeSafe(childInterp) == TCL_ERROR) {
+ if (TclMakeSafe(childInterp) == TCL_ERROR) {
goto error;
}
} else {
@@ -3259,7 +3259,7 @@ Tcl_IsSafe(
/*
*----------------------------------------------------------------------
*
- * Tcl_MakeSafe --
+ * TclMakeSafe --
*
* Makes its argument interpreter contain only functionality that is
* defined to be part of Safe Tcl. Unsafe commands are hidden, the env
@@ -3276,7 +3276,7 @@ Tcl_IsSafe(
*/
int
-Tcl_MakeSafe(
+TclMakeSafe(
Tcl_Interp *interp) /* Interpreter to be made safe. */
{
Tcl_Channel chan; /* Channel to remove from safe interpreter. */
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index 2abd2fb..ee2e12b 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -793,6 +793,7 @@ static int utfNcasecmp(const char *s1, const char *s2, unsigned int n){
# define TclBN_s_mp_sqr 0
# undef TclBN_s_mp_sub
# define TclBN_s_mp_sub 0
+# define Tcl_MakeSafe 0
#else /* TCL_NO_DEPRECATED */
# define Tcl_SeekOld seekOld
# define Tcl_TellOld tellOld
@@ -814,6 +815,7 @@ static int utfNcasecmp(const char *s1, const char *s2, unsigned int n){
# define TclGetCommandFullName Tcl_GetCommandFullName
# define TclpLocaltime_unix TclpLocaltime
# define TclpGmtime_unix TclpGmtime
+# define Tcl_MakeSafe TclMakeSafe
static int
seekOld(