diff options
author | dgp <dgp@users.sourceforge.net> | 2001-09-24 21:10:32 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2001-09-24 21:10:32 (GMT) |
commit | 85efd4f6340d3db40be6608dc383cf19efb4fecf (patch) | |
tree | 9fe3b099b7850769ca7b1bbf5be9ee6bcc10f7a4 /generic/tclMain.c | |
parent | bb93c0bc5c4d8116d1c04051c5f999615b5f06ff (diff) | |
download | tcl-85efd4f6340d3db40be6608dc383cf19efb4fecf.zip tcl-85efd4f6340d3db40be6608dc383cf19efb4fecf.tar.gz tcl-85efd4f6340d3db40be6608dc383cf19efb4fecf.tar.bz2 |
* Updated APIs in
generic/tclUtil.c according to the guidelines of TIP 27.
[Patch 464553]
Diffstat (limited to 'generic/tclMain.c')
-rw-r--r-- | generic/tclMain.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclMain.c b/generic/tclMain.c index 479ef52..8ad20d5 100644 --- a/generic/tclMain.c +++ b/generic/tclMain.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclMain.c,v 1.12 2001/04/04 23:26:03 dgp Exp $ + * RCS: @(#) $Id: tclMain.c,v 1.13 2001/09/24 21:10:32 dgp Exp $ */ #include "tcl.h" @@ -459,7 +459,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; |