Skip to content

Commit 7da77a3

Browse files
author
jan.nijtmans
committed
Don't lose stuff when doing 'make genstubs'
1 parent d2c491f commit 7da77a3

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

generic/itclDecls.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ ITCLAPI const char *Itcl_InitStubs(
1717

1818
#if TCL_MAJOR_VERSION < 9
1919
# define Tcl_ObjCmdProc2 Tcl_ObjCmdProc
20+
#elif defined(TCL_NO_DEPRECATED)
21+
# define Tcl_ObjCmdProc void
22+
# define Tcl_CmdProc void
2023
#endif
2124

2225
/* !BEGIN!: Do not edit below this line. */
@@ -222,6 +225,12 @@ extern const ItclStubs *itclStubsPtr;
222225
# undef Itcl_FindC2
223226
# define Itcl_FindC2(interp, name, objProcPtr, cDataPtr) \
224227
Itcl_FindC(interp, name, NULL, objProcPtr, cDataPtr)
228+
#elif defined(TCL_NO_DEPRECATED)
229+
# undef Tcl_ObjCmdProc
230+
# undef Tcl_CmdProc
231+
# undef Itcl_RegisterC
232+
# undef Itcl_RegisterObjC
233+
# undef Itcl_FindC
225234
#endif
226235

227236
#endif /* _ITCLDECLS */

generic/itclIntDecls.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
#ifndef _ITCLINTDECLS
66
#define _ITCLINTDECLS
77

8+
#if TCL_MAJOR_VERSION < 9
9+
# define Tcl_ObjCmdProc2 Tcl_ObjCmdProc
10+
#elif defined(TCL_NO_DEPRECATED)
11+
# define Tcl_ObjCmdProc void
12+
#endif
13+
814
/* !BEGIN!: Do not edit below this line. */
915

1016
#define ITCLINT_STUBS_EPOCH 0
1117
#define ITCLINT_STUBS_REVISION 159
1218

13-
#if TCL_MAJOR_VERSION < 9
14-
# define Tcl_ObjCmdProc2 Tcl_ObjCmdProc
15-
#endif
16-
1719
#ifdef __cplusplus
1820
extern "C" {
1921
#endif

0 commit comments

Comments
 (0)