summaryrefslogtreecommitdiffstats
path: root/generic/tclIntDecls.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-12-01 10:38:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-12-01 10:38:04 (GMT)
commit1a237e67df1f72fce66636d7efcd7cffa82bd0b8 (patch)
tree0b1cbcae716c891d6c31b84fbe6974529402956e /generic/tclIntDecls.h
parentdb726dc570738b047f110645527b804c3b59d28e (diff)
downloadtcl-1a237e67df1f72fce66636d7efcd7cffa82bd0b8.zip
tcl-1a237e67df1f72fce66636d7efcd7cffa82bd0b8.tar.gz
tcl-1a237e67df1f72fce66636d7efcd7cffa82bd0b8.tar.bz2
Simpler solution for Itcl 3.4 build (compatibilty) problem. Thanks to Don Porter for bringing this to my attention!
Diffstat (limited to 'generic/tclIntDecls.h')
-rw-r--r--generic/tclIntDecls.h67
1 files changed, 16 insertions, 51 deletions
diff --git a/generic/tclIntDecls.h b/generic/tclIntDecls.h
index c3ee084..5848bb3 100644
--- a/generic/tclIntDecls.h
+++ b/generic/tclIntDecls.h
@@ -28,6 +28,22 @@
# endif
#endif
+#if !defined(TCL_NO_DEPRECATED) && (TCL_MAJOR_VERSION < 9)
+/* Those macro's are especially for Itcl 3.4 compatibility */
+# define tclCreateNamespace tcl_CreateNamespace
+# define tclDeleteNamespace tcl_DeleteNamespace
+# define tclAppendExportList tcl_AppendExportList
+# define tclExport tcl_Export
+# define tclImport tcl_Import
+# define tclForgetImport tcl_ForgetImport
+# define tclGetCurrentNamespace_ tcl_GetCurrentNamespace
+# define tclGetGlobalNamespace_ tcl_GetGlobalNamespace
+# define tclFindNamespace tcl_FindNamespace
+# define tclFindCommand tcl_FindCommand
+# define tclGetCommandFromObj tcl_GetCommandFromObj
+# define tclGetCommandFullName tcl_GetCommandFullName
+#endif /* !defined(TCL_NO_DEPRECATED) */
+
/*
* WARNING: This file is automatically generated by the tools/genStubs.tcl
* script. Any modifications to the function declarations below should be made
@@ -1367,57 +1383,6 @@ extern const TclIntStubs *tclIntStubsPtr;
# undef TclGetCommandFullName
# undef TclCopyChannelOld
# undef TclSockMinimumBuffersOld
-
-#if !defined(TCL_NO_DEPRECATED)
-# undef Tcl_CreateNamespace
-# define Tcl_CreateNamespace \
- (tclIntStubsPtr->tclCreateNamespace) /* 113 */
-# define tcl_CreateNamespace tclCreateNamespace
-# undef Tcl_DeleteNamespace
-# define Tcl_DeleteNamespace \
- (tclIntStubsPtr->tclDeleteNamespace) /* 114 */
-# define tcl_DeleteNamespace tclDeleteNamespace
-# undef Tcl_AppendExportList
-# define Tcl_AppendExportList \
- (tclIntStubsPtr->tclAppendExportList) /* 112 */
-# define tcl_AppendExportList tclAppendExportList
-# undef Tcl_Export
-# define Tcl_Export \
- (tclIntStubsPtr->tclExport) /* 115 */
-# define tcl_Export tclExport
-# undef Tcl_Import
-# define Tcl_Import \
- (tclIntStubsPtr->tclImport) /* 127 */
-# define tcl_Import tclImport
-# undef Tcl_ForgetImport
-# define Tcl_ForgetImport \
- (tclIntStubsPtr->tclForgetImport) /* 121 */
-# define tcl_ForgetImport tclForgetImport
-# undef Tcl_GetCurrentNamespace
-# define Tcl_GetCurrentNamespace \
- (tclIntStubsPtr->tclGetCurrentNamespace_) /* 124 */
-# define tcl_GetCurrentNamespace tclGetCurrentNamespace_
-# undef Tcl_GetGlobalNamespace
-# define Tcl_GetGlobalNamespace \
- (tclIntStubsPtr->tclGetGlobalNamespace_) /* 125 */
-# define tcl_GetGlobalNamespace tclGetGlobalNamespace_
-# undef Tcl_FindNamespace
-# define Tcl_FindNamespace \
- (tclIntStubsPtr->tclFindNamespace) /* 117 */
-# define tcl_FindNamespace tclFindNamespace
-# undef Tcl_FindCommand
-# define Tcl_FindCommand \
- (tclIntStubsPtr->tclFindCommand) /* 116 */
-# define tcl_FindCommand tclFindCommand
-# undef Tcl_GetCommandFromObj
-# define Tcl_GetCommandFromObj \
- (tclIntStubsPtr->tclGetCommandFromObj) /* 122 */
-# define tcl_GetCommandFromObj tclGetCommandFromObj
-# undef Tcl_GetCommandFullName
-# define Tcl_GetCommandFullName \
- (tclIntStubsPtr->tclGetCommandFullName) /* 123 */
-# define tcl_GetCommandFullName tclGetCommandFullName
-#endif /* !defined(TCL_NO_DEPRECATED) */
#endif
#endif /* _TCLINTDECLS */