[Python-Dev] _tkinter.c no longer compiles on Windows

Tim Peters tim.one@comcast.net
Tue, 26 Nov 2002 10:04:48 -0500


> Modified Files:
> 	_tkinter.c
> Log Message:
> Patch #518625: Return objects in Tkinter.
>
>
> Index: _tkinter.c
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Modules/_tkinter.c,v
> retrieving revision 1.130
> retrieving revision 1.131
> diff -C2 -d -r1.130 -r1.131
> *** _tkinter.c	1 Oct 2002 18:50:56 -0000	1.130
> --- _tkinter.c	26 Nov 2002 09:28:05 -0000	1.131
> ***************
> *** 51,57 ****
> --- 51,59 ----
>   #ifdef TK_FRAMEWORK
>   #include <Tcl/tcl.h>
> + #include <Tcl/tclInt.h>
>   #include <Tk/tk.h>
>   #else
>   #include <tcl.h>
> + #include <tclInt.h>
>   #include <tk.h>
>   #endif
> ***************

tclInt.h doesn't exist in the Tcl/Tk install's Include directory, in either
the 8.3.2 or 8.4.1 versions, so _tkinter no longer compiles on Windows.

I don't know what the intent is here, so it would be better if someone who
does tried to fix this.  The only files in the 8.3.2 Include directory are

tcl.h
tclDecls.h
tk.h
tkDecls.h
tkIntXlibDecls.h

8.4.1 adds two more to that set, which I expect are meant not to be used
directly:

tclPlatDecls.h
tkPlatDecls.h

The release Include directories in 8.3.2 and 8.4.1 also contain an X11
subdirectory, but that appears irrelevant.