Skip to content
Tcl Source Code Artifact [956cb386f9]
Login

Artifact [956cb386f9]

Artifact 956cb386f9b94acdd2d44ea7c320bf73e7bcca1d:

Ticket change [956cb386f9] - Ticket [474335ffffffffff|474335ffff] <i>logic of matherr is backwards</i> status still Open with 4 other changes by jenglish on 2002-01-16 09:21:46.
D 2002-01-16T09:21:46
J icomment Logged\sIn:\sYES\s\nuser_id=68433\n\nOn\sthe\sUnices\sthat\sI\shave\savailable,\s'matherr()'\sis\sonly\nused\s\sif\syou\sstatically\s\slink\sagainst\sa\sspecial\slibrary\ninstead\sof\sthe\sdefault\s-lm\s(IRIX:\s-lmx;\sAIX:\s-lmsaa;\sLinux\n(RH\s6.2,\s7.0,7.1,7.2,\sSuSE\s6.2):\sapparently\snot\ssupported).\s\n\nA\sgoogle\ssearch\sshows\sthat\smatherr\sis\ssupported\son\sHP-UX\sand\na\sfew\sothers,\sbut\sthe\sdefault\sbehaviour\s(set\serrno\sand\ncontinue)\sis\sexactly\sthe\ssame\sas\s\swhat's\sin\nunix/tclMtherr.c,\sso\sthe\slatter\sis\sredundant.\n\nIt\swould\sappear\sthat\sthis\sis\seither\sunused\sor\sredundant\son\nall\sUnix\splatforms,\sand\scan\ssafely\sbe\sremoved\s(except\sfor\none\sproblem,\ssee\sbelow).\n\nIn\sunix/tclAppInit.c\sthe\sfollowing\sshould\salso\sbe\staken\sout:\n\n/*\s\n\s*\sThe\sfollowing\svariable\sis\sa\sspecial\shack\sthat\sis\sneeded\nin\sorder\sfor\n\s*\sSun\sshared\slibraries\sto\sbe\sused\sfor\sTcl.\n\s*/\nextern\sint\smatherr();\nint\s*tclDummyMathPtr\s=\s(int\s*)\smatherr;\n\nThis\sbit\sof\scode\shas\sbeen\saround\ssince\sTcl\s7.4,\sbut\shas\slong\nsince\sbeen\srendered\sobsolete\sby\sStubs\sand\snewer\sversions\sof\nSunOS.\n\s\nThe\sonly\sproblem\swith\sremoving\sunix/tclMtherr.c\sis\sthat\sall\nthe\scustom\stclsh's\sand\swishes\sout\sthere\sthat\shave\sretained\nthe\stclDummyMathPtr\sdefinition\sfor\scargo-cult\sreasons\swill\nfail\sto\slink\son\splatforms\sthat\sdon't\shave\smatherr().\s\sIt's\nan\seasy\sfix\s--\sjust\sget\srid\sof\sthe\sdefinition\s--\sso\sthis\nprobably\sisn't\smuch\sof\san\sissue.\n\n
J login jenglish
J mimetype text/plain
J username jenglish
K 474335ffffffffffffffffffffffffffffffffff
U jenglish
Z cbfc97656dee81574ae5e24dc5ade997