Tcl Source Code

Artifact [41c2b7acc0]
Login

Artifact 41c2b7acc0683277b244aee5d8a0184b2e484660:

Ticket change [41c2b7acc0] - New ticket [e832d2b08f] unnecessary code in Tcl_SetMacBlockTime. by anonymous 2013-10-30 13:06:13.
D 2013-10-30T13:06:13.574
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment In\sgeneric/tclNotify.c,\sin\sthe\sfunction\sTcl_SetMaxBlockTime,\schecking\sfor\stsdPtr->blockTimeSet\sin\sthe\ssecond\sif-clause\sis\sunnecessary.\sThe\scurrent\scode\slooks\sas\sfollows:\r\n\r\nif\s(!tsdPtr->blockTimeSet\s||\s...)\s{\r\n\s\s\s\s...\r\n\s\s\s\stsdPtr->blockTimeSet\s=\s1;\r\n}\r\n\r\nif\s(!tsdPtr->inTraversal)\s{\r\n\s\s\s\sif\s(tsdPtr->blockTimeSet)\s{\r\n\s\s\s\s\s\s\s\sTcl_SetTimer(&tsdPtr->blockTime);\r\n\s\s\s\s}\selse\s{\r\n\s\s\s\s\s\s\s\sTcl_SetTimer(NULL);\r\n\s\s\s\s}\r\n}\r\n\r\nEither\stsdPtr->blockTimeSet\sis\salready\s1\swhen\swe\senter\sthis\sfunction,\sor\sotherwise\sthe\sfirst\sif-clause\swill\sset\sit\sto\s1.\sTherefore,\sthe\ssecond\sif-clause\scan\ssimply\sread\r\n\r\nif\s(!tsdPtr->inTraversal)\s{\r\n\s\s\s\sTcl_SetTimer(&tsdPtr->blockTime);\r\n}
J foundin 8.6.0
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 500c9a7a4e11b3ea0441850610e04006941c0cf3
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 01.\sNotifier
J title unnecessary\scode\sin\sTcl_SetMacBlockTime
J type Bug
K e832d2b08fc9e1d1ec9c354806fcdd7e89de6c39
U anonymous
Z 9186287638f6e64cc67ee609eeb128d8