summarylogtreecommitdiffstats
path: root/patch-interp-errorLine.patch
blob: ad8ef9ddf0619a9f72e825631de8714fb0caae05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -r -u blt2.5/generic/bltTreeCmd.c blt2.5.patched/generic/bltTreeCmd.c
--- blt2.5/generic/bltTreeCmd.c	2010-12-26 22:03:13.000000000 +0100
+++ blt2.5.patched/generic/bltTreeCmd.c	2023-05-12 14:36:26.273990029 +0200
@@ -8560,7 +8560,7 @@
         if (result == TCL_CONTINUE ) continue;
 	if (result == TCL_ERROR) {
             Tcl_AppendResult(interp,
-            "\n    (\"tree foreach\" body line ", Blt_Itoa(interp->errorLine), ")\n", 0);
+            "\n    (\"tree foreach\" body line ", Blt_Itoa(Tcl_GetErrorLine(interp)), ")\n", 0);
              break;
         }
         if (result != TCL_OK) {