[m-rev.] Fwd: for review: fix obsolete tcl-tk code in extras/graphics/mercury_tcltk

Fabrice Nicol fabrnicol at gmail.com
Wed Jan 5 12:49:45 AEDT 2022


As a modest proposal for review by anyone.

----------------------------------------------------------

Bug issue (fixed): building libmercury_tcltk crashes with current tcl-tk 
releases (8.6+).

As a consequence, samples/calc cannot be built either.

---------------------------------------------------------

Proposed fix:

extras/graphics/mercury_tcltk/mtcltk.m:

         As of 2012-2013, 'result' fields in TCL_Interp structures have 
been obsoleted.

         They have been replaced with calls to function 
'Tcl_GetStringResult'.

---------------------------------------------------------

Fix was tested under Gentoo Linux (amd64 branch, tk version 8.6.11.1) by 
building application 'calc' in directory 'samples'.

Fabrice
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Replace-obsolete-result-fields-in-Tcl_Interp-with-Tc.patch
Type: text/x-patch
Size: 1229 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20220105/d2cf0cd8/attachment.bin>


More information about the reviews mailing list