CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]    2026/05/27 19:20:00

Modified files:
        lang/expect    : Makefile 
        lang/expect/patches: patch-exp_chan_c 

Log message:
expect: set channel type to TCL_CHANNEL_VERSION_2 for llvm22

Avoid passing the ExpBlockModeProc function pointer through an object
pointer type and instead move it to the proper place in the struct. Setting
the channel version of expChannelType to 2 in the version field tells tcl's
Tcl_ChannelBlockModeProc() to use the function pointer directly, and avoids
undefined behavior. Using TCL_CHANNEL_VERSION_2 is the conservative choice,
although version 5 would also work.

discussed with stu
tested/ok jca

Reply via email to