Greetings, and thanks so much again! Both of your contributions are in git now. I did preliminary testing with tk9.0 and the behavior appears identical.
Take care, Jerry James <loganje...@gmail.com> writes: > Greetings, > > The Fedora project is moving from Tcl/Tk 8.6 to 9.0. The code in > gcl-tk/tkMain.c needs a few adjustments for version 9. > > - The Tcl_TildeSubst function is gone. In addition, Tcl/Tk functions > no longer expand ~ by default. > - The CONST macro has been removed, since ANSI compilers have been > standard for multiple decades. > - No prototype is provided for Tcl_AppInit() anymore. > - The Tk_CreateFileHandler and TK_READABLE backwards compatibility > macros have been removed due to the length of time for which the > Tcl_CreateFileHandler and TCL_READABLE replacements have been > available. > > The attached patch is my attempt at dealing with these changes, as follows: > > - Replace Tcl_TildeSubst with wordexp, defined in POSIX.1-2001. > Caution: this does more than just tilde expansion. > - Comment out the isatty and strrchr prototypes, as they are provided > by unistd.h and string.h, respectively. > - Add a prototype for Tcl_AppInit to gcl-tk/tkMain.c. > - Use Tcl_CreateFileHandler and TCL_READABLE. > > With this patch, the code at least compiles. Whether it behaves > correctly remains to be seen. Regards, -- Camm Maguire c...@maguirefamily.org ========================================================================== "The earth is but one country, and mankind its citizens." -- Baha'u'llah