Skip to content

Commit

Permalink
Replace uses of Tcl_Interp::result (win32)
Browse files Browse the repository at this point in the history
  • Loading branch information
layus committed Aug 13, 2018
1 parent d319abf commit deec2fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wish/winmain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ void readHandler(ClientData clientData, int mask)
int code = Tcl_GlobalEval(interp, buffer);
if (code != TCL_OK) {
char buf[1000];
DebugCode(fprintf(dbgin,"### Error(%d): %s\n", code,interp->result);
DebugCode(fprintf(dbgin,"### Error(%d): %s\n", code, Tcl_GetStringResult(interp));
fflush(dbgin));
sprintf(buf,"w --- %s--- %s\n---\n.\n", buffer,interp->result);
sprintf(buf,"w --- %s--- %s\n---\n.\n", buffer, Tcl_GetStringResult(interp));
sendToEngine(buf);
}

Expand Down Expand Up @@ -251,7 +251,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCm
*/
if (Tcl_Init(interp) == TCL_ERROR ||
Tk_Init(interp) == TCL_ERROR) {
WishPanic("Tcl_Init failed: %s\n", interp->result);
WishPanic("Tcl_Init failed: %s\n", Tcl_GetStringResult(interp));
}

Tcl_ResetResult(interp);
Expand Down Expand Up @@ -282,7 +282,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCm
code = Tcl_GlobalEval(interp, "wm withdraw . ");
if (code != TCL_OK) {
char buf[1000];
sprintf(buf,"w %s\n.\n", interp->result);
sprintf(buf,"w %s\n.\n", Tcl_GetStringResult(interp));
sendToEngine(buf);
}

Expand Down

0 comments on commit deec2fe

Please sign in to comment.