-
- Downloads
Modified to build under Yosemite using Clang 6.0 and TclTk 8.6, which has...
Modified to build under Yosemite using Clang 6.0 and TclTk 8.6, which has deprecated direct use of the Tcl interpreter result field This version was modified to build on Yosemite using the latest Clang compiler (6.0) and the latest Tcl/Tk (8.6). This needed a very large number of changes, mostly to code that made use of the - now deprecated - 'result' flag of the tcl interpreter. All of these cases needed to be changed to use Tcl_SetResult() and Tcl_GetStringResult() in one way or another. At the same time, any other code that was generating warnings with this recent (and quite fussy) compiler was also modified. This version built on my laptop with no warnings at all. The files changed were: dtclbackgnd.c dtclbshareinit.c dtclcmderror.c dtclcommand.c dtcldits.c dtclersrep.c dtclload.c dtclmodule.c dtclreqnot.c dtclrunning.c dtclsds.c dtclsdsimg.c dtclshareinit.c dtclstdin.c dtcltk.c dtcltkscreeninfo.c gitloggerinit.C The file fix.py has been added to the sub-system, just for historical interest. It was used to replace as many references to "interp->result" in the code as was practical, and the remaining warnings from the compiler were fixed by hand. (Note that there were over 350 lines of code that contained "interp->result". About 80% (at a rough guess) were handled automatically. The rest were harder.
Showing
- dmakefile 1 addition, 1 deletiondmakefile
- dtclbackgnd.c 19 additions, 10 deletionsdtclbackgnd.c
- dtclbshareinit.c 10 additions, 4 deletionsdtclbshareinit.c
- dtclcmderror.c 8 additions, 3 deletionsdtclcmderror.c
- dtclcommand.c 162 additions, 69 deletionsdtclcommand.c
- dtcldits.c 399 additions, 170 deletionsdtcldits.c
- dtclersrep.c 22 additions, 6 deletionsdtclersrep.c
- dtclload.c 32 additions, 13 deletionsdtclload.c
- dtclmodule.c 4 additions, 2 deletionsdtclmodule.c
- dtclreqnot.c 12 additions, 3 deletionsdtclreqnot.c
- dtclrunning.c 19 additions, 6 deletionsdtclrunning.c
- dtclsds.c 402 additions, 178 deletionsdtclsds.c
- dtclsdsimg.c 33 additions, 17 deletionsdtclsdsimg.c
- dtclshareinit.c 9 additions, 4 deletionsdtclshareinit.c
- dtclstdin.c 14 additions, 9 deletionsdtclstdin.c
- dtcltk.c 25 additions, 8 deletionsdtcltk.c
- dtcltkscreeninfo.c 28 additions, 9 deletionsdtcltkscreeninfo.c
- fix.py 119 additions, 0 deletionsfix.py
- gitloggerinit.C 7 additions, 2 deletionsgitloggerinit.C
Loading
Please register or sign in to comment