summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-16 09:17:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-16 09:17:25 (GMT)
commit3bbe089a07471851d1352b8d2ac3a2f544c3d8bb (patch)
tree274545e9246a2a642e1ceca8183e2f171205c59c /generic
parent5d8dc198ffb03372e3b66985f080b2d9a3a30297 (diff)
parent09c2f769ba9fbbb8a1b62ce432c0c7a26ca4f800 (diff)
downloadtcl-3bbe089a07471851d1352b8d2ac3a2f544c3d8bb.zip
tcl-3bbe089a07471851d1352b8d2ac3a2f544c3d8bb.tar.gz
tcl-3bbe089a07471851d1352b8d2ac3a2f544c3d8bb.tar.bz2
Allow win32 build with -DTCL_NO_DEPRECATED, just as the UNIX build, off by default.
Define Tcl_EvalObj and Tcl_GlobalEvalObj as macros, even when TCL_NO_DEPRECATED is defined, so Tk can benefit from it too (this is not what TCL_NO_DEPRECATED is supposed to do).
Diffstat (limited to 'generic')
-rw-r--r--generic/tcl.h11
-rw-r--r--generic/tclBasic.c2
-rw-r--r--generic/tclDecls.h12
3 files changed, 12 insertions, 13 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 145124c..33730d4 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -2407,17 +2407,6 @@ EXTERN void Tcl_GetMemoryInfo _ANSI_ARGS_((Tcl_DString *dsPtr));
#ifndef TCL_NO_DEPRECATED
/*
- * Deprecated Tcl functions:
- */
-
-# undef Tcl_EvalObj
-# define Tcl_EvalObj(interp,objPtr) \
- Tcl_EvalObjEx((interp),(objPtr),0)
-# undef Tcl_GlobalEvalObj
-# define Tcl_GlobalEvalObj(interp,objPtr) \
- Tcl_EvalObjEx((interp),(objPtr),TCL_EVAL_GLOBAL)
-
- /*
* These function have been renamed. The old names are deprecated, but we
* define these macros for backwards compatibilty.
*/
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index cfb5c43..5779ca5 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -4990,7 +4990,6 @@ Tcl_Eval(
*----------------------------------------------------------------------
*/
-#undef Tcl_EvalObj
int
Tcl_EvalObj(
Tcl_Interp *interp,
@@ -4999,7 +4998,6 @@ Tcl_EvalObj(
return Tcl_EvalObjEx(interp, objPtr, 0);
}
-#undef Tcl_GlobalEvalObj
int
Tcl_GlobalEvalObj(
Tcl_Interp *interp,
diff --git a/generic/tclDecls.h b/generic/tclDecls.h
index 8cb939c..20ec35d 100644
--- a/generic/tclDecls.h
+++ b/generic/tclDecls.h
@@ -6547,5 +6547,17 @@ extern TclStubs *tclStubsPtr;
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLIMPORT
+/*
+ * Deprecated Tcl procedures:
+ */
+#if defined(USE_TCL_STUBS) && !defined(USE_TCL_STUB_PROCS)
+# undef Tcl_EvalObj
+# define Tcl_EvalObj(interp,objPtr) \
+ Tcl_EvalObjEx((interp),(objPtr),0)
+# undef Tcl_GlobalEvalObj
+# define Tcl_GlobalEvalObj(interp,objPtr) \
+ Tcl_EvalObjEx((interp),(objPtr),TCL_EVAL_GLOBAL)
+#endif
+
#endif /* _TCLDECLS */