Skip to content

Commit a00655b

Browse files
mdehoonMichiel Jan Laurens de Hoon
andauthored
gh-140001: Remove obsolete TCL_WIN_SOCKET macro (from Tcl 7.x) from _tkinter.c (GH-139998)
Co-authored-by: Michiel Jan Laurens de Hoon <[email protected]>
1 parent e6aa515 commit a00655b

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

Modules/_tkinter.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -82,33 +82,10 @@ typedef int Tcl_Size;
8282

8383
#ifdef HAVE_CREATEFILEHANDLER
8484

85-
/* This bit is to ensure that TCL_UNIX_FD is defined and doesn't interfere
86-
with the proper calculation of FHANDLETYPE == TCL_UNIX_FD below. */
87-
#ifndef TCL_UNIX_FD
88-
# ifdef TCL_WIN_SOCKET
89-
# define TCL_UNIX_FD (! TCL_WIN_SOCKET)
90-
# else
91-
# define TCL_UNIX_FD 1
92-
# endif
93-
#endif
94-
95-
/* Tcl_CreateFileHandler() changed several times; these macros deal with the
96-
messiness. In Tcl 8.0 and later, it is not available on Windows (and on
97-
Unix, only because Jack added it back); when available on Windows, it only
98-
applies to sockets. */
99-
100-
#ifdef MS_WINDOWS
101-
#define FHANDLETYPE TCL_WIN_SOCKET
102-
#else
103-
#define FHANDLETYPE TCL_UNIX_FD
104-
#endif
105-
10685
/* If Tcl can wait for a Unix file descriptor, define the EventHook() routine
10786
which uses this to handle Tcl events while the user is typing commands. */
10887

109-
#if FHANDLETYPE == TCL_UNIX_FD
11088
#define WAIT_FOR_STDIN
111-
#endif
11289

11390
#endif /* HAVE_CREATEFILEHANDLER */
11491

0 commit comments

Comments
 (0)