summaryrefslogtreecommitdiff
path: root/math/plplot/files/patch-examples__tk__xtk02.c
blob: dd17bd5c7f0e48415abc02fc2778d235e350eb5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- examples/tk/xtk02.c.orig
+++ examples/tk/xtk02.c
@@ -49,7 +49,7 @@
         pm->fdata[i] = y;
     }
 
-    interp->result = "Things are cool in gumbyville.";
+    Tcl_SetResult(interp,(char*)"Things are cool in gumbyville.",TCL_VOLATILE);
     return TCL_OK;
 }
 
@@ -82,7 +82,7 @@
 //
 // Results:
 //	Returns a standard Tcl completion code, and leaves an error
-//	message in interp->result if an error occurs.
+//	message in Tcl_GetStringResult(interp) if an error occurs.
 //
 // Side effects:
 //	Depends on the startup script.