summaryrefslogtreecommitdiffstats
path: root/generic/tclOOStubInit.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-08-21 16:30:26 (GMT)
committernijtmans <nijtmans>2010-08-21 16:30:26 (GMT)
commit23d66b6d7e39e2b189c6ca7c09d76c398d13171a (patch)
treec8b551461e0fb3e73294da1f8badf2f2b69d9bd3 /generic/tclOOStubInit.c
parent2353628b42e71598ddcc606a3c51667a6cc4f199 (diff)
downloadtcl-23d66b6d7e39e2b189c6ca7c09d76c398d13171a.zip
tcl-23d66b6d7e39e2b189c6ca7c09d76c398d13171a.tar.gz
tcl-23d66b6d7e39e2b189c6ca7c09d76c398d13171a.tar.bz2
[Patch 3034251]: Backport ttkGenStubs.tcl features to genStubs.tcl, partly:
Use void (*reserved$i)(void) = 0 instead of void *reserved$i = NULL for unused stub entries, in case pointer-to-function and pointer-to-object are different sizes.
Diffstat (limited to 'generic/tclOOStubInit.c')
-rw-r--r--generic/tclOOStubInit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclOOStubInit.c b/generic/tclOOStubInit.c
index bb46abb..ed1c4cd 100644
--- a/generic/tclOOStubInit.c
+++ b/generic/tclOOStubInit.c
@@ -1,5 +1,5 @@
/*
- * $Id: tclOOStubInit.c,v 1.11 2010/04/26 13:32:33 dkf Exp $
+ * $Id: tclOOStubInit.c,v 1.12 2010/08/21 16:30:26 nijtmans Exp $
*
* This file is (mostly) automatically generated from tclOO.decls.
* It is compiled and linked in with the tclOO package proper.
@@ -20,7 +20,7 @@ MODULE_SCOPE const TclOOStubs tclOOStubs;
static const TclOOIntStubs tclOOIntStubs = {
TCL_STUB_MAGIC,
- NULL,
+ 0,
TclOOGetDefineCmdContext, /* 0 */
TclOOMakeProcInstanceMethod, /* 1 */
TclOOMakeProcMethod, /* 2 */