Skip to content
Tcl Source Code Artifact [8c6e7723a0]
Login

Artifact [8c6e7723a0]

Artifact 8c6e7723a05839aef6fc9235c17dedcf92fd4d55:

Ticket change [8c6e7723a0] - New ticket [1976981fffffffff|1976981fff] <i>-Dstrtod doesn&#39;t do what is expected.</i>. by seebs on 2008-05-28 18:03:21.
D 2008-05-28T18:03:21
J assignee nobody
J cmimetype text/plain
J comment The\suse\sof\s-Dstrtod=fixstrtod\sis\snot\sreliable.\s\sWhen\sglibc's\sheaders\sare\sread,\sthe\sinline\sdefinition\sof\sstrtod\sin\sterms\sof\s__internal_strtod\sis\smodified\sby\sthe\smacro.\s\sSo,\swhile\severy\scall\sto\sstrtod()\sis\sreplaced\swith\sa\scall\sto\sfixstrtod(),\sthat\srefers\sto\san\sinline\sfunction,\sand\sthe\slibrary's\sstandard\s__internal_strtod()\sis\scalled\sanyway.\s\sIf\sthe\sconfigure\sscript's\stest\sto\sdetermine\sthat\sit\sneeds\sto\smodify\sstrtod\sis\scorrect,\sit\sis\shaving\sno\seffect\sin\sthe\sdefault\sconfiguration\sof\sglibc.\n\nIn\sgeneral,\sC\sdoes\snot\sreally\s"allow"\sredefinitions\sof\sstandard\slibrary\sfunctions.\s\sObviously,\sthere\sis\sa\scompelling\sreason\sto\stry\sto\soutsmart\sthe\slibrary\sin\sthis\scase.\n\nThe\scorrect\sway\sto\sdo\sthis\sis\sto,\s*AFTER*\sincluding\sthe\sstandard\sheaders,\sexecute\scode\ssomething\slike\sthis:\n\n#ifdef\sUSE_FIXSTRTOD\nextern\sdouble\sfixstrtod(const\schar\s*,\schar\s**);\n#undef\sstrtod\n#define\sstrtod\sfixstrtod\n#endif\n\nThis\sis\sstill\sprobably\sundefined\sbehavior,\sbut\sI'm\spretty\sconfident\sthat\sit\swill\swork.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter seebs
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title -Dstrtod\sdoesn't\sdo\swhat\sis\sexpected.
J type Bug
K 1976981fffffffffffffffffffffffffffffffff
U seebs
Z 8661edeeda9443fc7f987cc2322a84ec