Skip to content
Tcl Source Code Artifact [23b96afaed]
Login

Artifact [23b96afaed]

Artifact 23b96afaed681f7511ad9e00631ab288407be4f0:

Manifest of check-in [23b96afaed] - * generic/tclIO.c (Tcl_Seek, Tcl_OutputBuffered): If there is data buffered in the statePtr->curOutPtr member then set the BUFFER_READY flag in Tcl_Seek. This is needed so that the next call to FlushChannel will write any buffered bytes before doing the seek. The existing code would set the BUFFER_READY flag inside the Tcl_OutputBuffered function. This was a programming error made when Tcl_OutputBuffered was originally created in CVS revision 1.35. The setting of the BUFFER_READY flag should not have been included in the Tcl_OutputBuffered function. * generic/tclTest.c (TestChannelCmd): Use the Tcl_InputBuffered and Tcl_OutputBuffered util methods to query the amount of buffered input and output. by mdejong on 2003-03-06 20:14:38.
B e22b36d8b67106fb20326541493b9613417d7fee
C \t*\sgeneric/tclIO.c\s(Tcl_Seek,\sTcl_OutputBuffered):\n\tIf\sthere\sis\sdata\sbuffered\sin\sthe\sstatePtr->curOutPtr\n\tmember\sthen\sset\sthe\sBUFFER_READY\sflag\sin\sTcl_Seek.\n\tThis\sis\sneeded\sso\sthat\sthe\snext\scall\sto\sFlushChannel\n\twill\swrite\sany\sbuffered\sbytes\sbefore\sdoing\sthe\sseek.\n\tThe\sexisting\scode\swould\sset\sthe\sBUFFER_READY\sflag\n\tinside\sthe\sTcl_OutputBuffered\sfunction.\sThis\swas\sa\n\tprogramming\serror\smade\swhen\sTcl_OutputBuffered\n\twas\soriginally\screated\sin\sCVS\srevision\s1.35.\sThe\n\tsetting\sof\sthe\sBUFFER_READY\sflag\sshould\snot\shave\n\tbeen\sincluded\sin\sthe\sTcl_OutputBuffered\sfunction.\n\t*\sgeneric/tclTest.c\s(TestChannelCmd):\sUse\sthe\n\tTcl_InputBuffered\sand\sTcl_OutputBuffered\n\tutil\smethods\sto\squery\sthe\samount\sof\sbuffered\n\tinput\sand\soutput.\n
D 2003-03-06T20:14:38
F ChangeLog 9d638bb56fed3cca9e4a5dcdd6484a561a511cbd
F generic/tclIO.c 09bd5142b00b51eca40fb579ae889e2db0d5c598
F generic/tclTest.c e778bc02bfd5e5c369dc0ede45126a171bf48a94
F tests/io.test 7179541fdb26c8f52c828404615d7d93397ce674
P f7c5ccc73cf70c189e0bb02f36220902ba03f958
U mdejong
Z f20d8525051ad67e2bead810f897d08f