Skip to content
Tcl Source Code Artifact [fa6d8610ab]
Login

Artifact [fa6d8610ab]

Artifact fa6d8610ab9324d548128de864aac3d2ac8cd248:

Ticket change [fa6d8610ab] - New ticket [555635ffffffffff|555635ffff] <i>Dead code: matherr, TclMathInProgress</i>. by jenglish on 2002-05-13 21:59:18.
D 2002-05-13T21:59:18
J assignee nobody
J cmimetype text/plain
J comment The\sattached\spatch\sremoves\smatherr()\sunder\sUnix,\sthe\ninternal\sroutine\sTclMathInProgress(),\sand\sthe\nassociated\sThreadSpecificData.\s\sThe\ssource\sfile\nunix/tclMtherr.c\sshould\salso\sbe\sremoved\sif\sthis\spatch\nis\sapplied.\n\nThe\s_matherr()\simplementation\sin\swin/tclWinMtherr.c\s--\nwhich\sis\sonly\sused\sin\sBorland\sC++,\snot\sMSVC\s--\shas\sbeen\nretained,\sbut\sit\sno\slonger\schecks\sTclMathInProgress().\s\nThis\sroutine\sis\sused\sto\sprevent\sthe\sBorland\sC++\smath\nlibrary\sfrom\sraising\sa\sfatal\sexception\swhen\sillegal\nvalues\sare\sencountered.\s\sWith\sthis\spatch,\sit\sprevents\nexceptions\sfrom\sbeing\sthrown\swhen\sany\spart\sof\sthe\nprogram\scalls\sa\smath\slibrary\sfunction,\snot\sjust\sTcl\ninternals.\s\sAgain,\sthis\sis\sonly\sapplicable\swhen\sTcl\sis\nbuilt\swith\sthe\sBorland\scompiler.\n\nFurther\sdiscussion\smay\sbe\sfound\sunder\sSF\sTcl\sBug\n#474335\s"logic\sof\smatherr\sis\sbackwards",\sbut\sin\nsummary:\n\n\s*\smatherr()\sis\snonportable\sand\snot\savailable\son\sall\nplatforms;\n\s*\sOn\sthe\splatforms\swhere\sit\sis\savailable,\sit\sis\ntypically\sonly\sused\sif\sthe\smain\sexecutable\sis\slinked\nwith\sa\sspecial\sversion\sof\slibm,\swhich\sTcl\sdoes\snot\sdo;\n\s*\sThe\sversion\sin\sunix/tclMtherr.c\sis\smerely\san\nincomplete\sreimplementation\sof\sthe\sdefault\sbehaviour\son\nthe\sUnix\splatforms\swhere\sit\sis\savailable;\n\s*\sA\sbug\srelated\sto\sthis\scode\s(#474335)\shas\sgone\nunnoticed\sfor\sover\sthree\syears,\sso\sit\sis\sunlikely\sin\nthe\sextreme\sthat\sits\soutright\sremoval\swill\scause\sany\nill\seffects;\n\n\nSummarizing\sthe\ssummary,\sthis\sis\sdead\scode\sand\sit\sought\nto\sbe\sburied.\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter jenglish
J subsystem None
J title Dead\scode:\smatherr,\sTclMathInProgress
J type Patch
K 555635ffffffffffffffffffffffffffffffffff
U jenglish
Z 7989e34ee65dfa3a9867f9c55cf8b4a9