eggdrop
eggdrop copied to clipboard
Add Tcl 9 compatibility
Found by: n/a Patch by: DasBrain Fixes: #1532
One-line summary: Makes eggdrop compatible with Tcl 9.0b1
Additional description (if needed):
init_tcl has been split into 2 parts:
-
init_tcl0sets the notifier, callsTcl_FindExecutableand if Tcl >= 9 callsTcl_InitSubsystem. -
init_tcl1does the rest.init_tcl0must be called before the thread local storage is used.
Tests show that this compiles and runs with both Tcl 8.6.11 and Tcl 9.0b1.
Following minor changes have been made:
- Replace
TCL_INTERP_DESTROYEDwithTcl_InterpDeleted()(also see #1537) - Define
EGG_CONSTasconst(CONSTis gone) - Introduce
Tcl_Size- which istypedef int Tcl_Sizeif not provided by tcl.h - Update variable types to
Tcl_Sizewhere needed. - Replace
Tcl_DStringTruncwithTcl_DStringSetLength
Test cases demonstrating functionality (if applicable):
- [Tcl9Eggdrop] (
): Running Eggdrop 1.9.5+python 1090505 with Tcl 9.0b - [Tcl8Eggdrop] (
): Running Eggdrop 1.9.5+python 1090505 with Tcl 8.6.