| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Please open an issue and link the Tcl documentation as well; TiA. |
Sorry, something went wrong.
|
See https://www.tcl-lang.org/man/tcl7.6/TclLib/GetFile.3.html for a description of these macros in Tcl 7.6. See generic/tcl.h in the Tcl 7.6 source code for the definition of these two macros: #define TCL_UNIX_FD 1 #define TCL_WIN_SOCKET 6 These macros are not defined in generic/tcl.h of Tcl 8.0, or mentioned anywhere else in the Tcl 8.0 source code. |
Sorry, something went wrong.
There was a problem hiding this comment.
Should not WAIT_FOR_STDIN be removed too?
Sorry, something went wrong.
|
WAIT_FOR_STDIN is not always defined: it remains undefined if __CYGWIN__ is defined. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. 👍
Sorry, something went wrong.
Pull request #140147 removes WAIT_FOR_STDIN as well as much of the Windows-specific code in Modules/_tkinter.c. Would you be willing to have a look at that PR? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The macro TCL_WIN_SOCKET used in Modules/_tkinter.c is a Tcl 7.x legacy macro that is no longer defined in Tcl ≥ 8.0.
As Python now requires Tcl 8.5.12, the code path is now unreachable, and can safely be removed.
The macro FHANDLETYPE defined in Modules/_tkinter.c then always evaluates to TCL_UNIX_FD, and can also be removed.