From 8fa92e5eb08f440c8993da8965ab7e0e17b173b8 Mon Sep 17 00:00:00 2001 From: dgp Date: Mon, 24 Sep 2001 22:14:38 +0000 Subject: Update to handle change in return type of Tcl_DStringAppend() from (char *) to (CONST char *). [TIP 27] --- ChangeLog | 6 ++++++ generic/tkMain.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e89732a..ffbbeb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-09-24 Don Porter + + * generic/tkMain.c (StdinProc): Update to handle change in + return type of Tcl_DStringAppend() from (char *) to (CONST char *). + [TIP 27] + 2001-09-23 Peter Spjuth * generic/tkPack.c (ConfigureSlaves): * tests/pack.test: diff --git a/generic/tkMain.c b/generic/tkMain.c index 6145d20..42d31f1 100644 --- a/generic/tkMain.c +++ b/generic/tkMain.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMain.c,v 1.8 2000/04/25 17:25:27 ericm Exp $ + * RCS: @(#) $Id: tkMain.c,v 1.9 2001/09/24 22:14:38 dgp Exp $ */ #include @@ -332,7 +332,8 @@ StdinProc(clientData, mask) (void) Tcl_DStringAppend(&tsdPtr->command, Tcl_DStringValue( &tsdPtr->line), -1); - cmd = Tcl_DStringAppend(&tsdPtr->command, "\n", -1); + Tcl_DStringAppend(&tsdPtr->command, "\n", -1); + cmd = Tcl_DStringValue(&tsdPtr->command); Tcl_DStringFree(&tsdPtr->line); if (!Tcl_CommandComplete(cmd)) { gotPartial = 1; -- cgit v0.12