<i>'gets' repeated after EOF doesn't work</i> status still Open with 3 other changes
by
.
D 2014-10-29T20:34:09.064
J icomment \r\nThe\skey\sroutine\shere\sis\sGetInput().\s\sEvery\scaller\r\nof\sGetInput()\shas\sto\s(when\sotherwise\swarranted)\smake\r\nat\sleast\sone\scall\sto\sGetInput()\s--\seven\sif\sEOF\sis\r\nalready\sset\son\sthe\schannel\s--\sin\sorder\sto\senable\r\nthe\smoving\spast\sEOF,\sand\sreading\swhatever\snew\sdata\r\nmay\sbe\savailable\snow.\r\n\r\nOn\sthe\sother\shand,\severy\scaller\sof\sGetInput()\smust\r\nnot\smake\san\sadditional\scall\sto\sGetInput()\safter\r\na\scall\sto\sGetInput()\shas\sleft\sEOF\sset\sin\sthe\schannel.\r\nAs\ssoon\sas\sa\scall\sto\sGetInput()\sleaves\sEOF\sset\sin\r\nthe\schannel,\sthe\scaller\smust\sbe\son\sa\spath\sto\sreturn\r\nto\sits\scaller\swithout\scalling\sGetInput()\sagain.\s\sThis\r\nmust\sbe\sachieved\sso\sthat\sa\sfleeting\sEOF\scondition\r\nis\snot\smissed\sby\sthe\scaller.\r\n\r\nThere\sare\s4\scallers\sof\sGetInput():\sTclGetsObjBinary(),\r\nFilterInputBytes(),\sDoReadChars(),\sand\sDoRead().
J login dgp
J mimetype text/plain
K 5adc3506834c2aacc613cd0df7de6f07a728c0aa
U dgp
Z 57e073abaf45821e64b3a3346298b9fd