1 --- modules-3.2.10/cmdModule.c.orig Sun Nov 5 15:47:54 2017
2 +++ modules-3.2.10/cmdModule.c Sun Nov 5 15:50:04 2017
5 /** ************************************************************************ **/
7 -/** not applicable **/
8 +/** For Tcl < 8.6 compatibility **/
9 +#if (TCL_MAJOR_VERSION < 8) || (TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 6)
10 +#define Tcl_GetErrorLine(interp) (interp->errorLine)
11 +#define Tcl_SetErrorLine(interp,lineNum) (interp->errorLine = lineNum)
14 /** ************************************************************************ **/
17 case TCL_OK: gotPartial = 0;
18 continue; /** while **/
20 - case TCL_ERROR: interp->errorLine = ((linenum-1)-gotPartial) +
22 + case TCL_ERROR: Tcl_SetErrorLine(interp, ((linenum-1)-gotPartial) +
23 + Tcl_GetErrorLine(interp));
26 case TCL_LEVEL0_RETURN: