<i>TIP 538 and Tcl extensions: 'tommath.h' file not found</i> status still Open with 3 other changes
by
.
D 2020-05-18T21:44:26.059
J icomment >\s+\s\s\stypedef\ssize_t\smp_int[4];\r\n>\sTcl_DecrRefCount(Tcl_NewBignumObj(&bignumValue));\r\n\r\nThanks\sfor\sthis\ssuggestion,\sI\swas\sentertaining\sa\ssimilar\sthought.\sStill,\sI\sam\swondering\sabout\sTIP\s538\sand\sthe\spublic\sTcl\sAPI\s(please\scorrect\sme\sif\sI\sam\smistaken):\r\n\r\nTcl_GetBignumFromObj\s&\sfriends\sbuild\son\smp_int,\s\sfunctions\soffered\sby\sTcl\sas\spart\sof\sits\spublic\sAPI\sbut\sstarting\swith\sTIP\s538,\sthere\sare\sno\smp_*\sdefinitions\sprovided\sby\sTcl\sitself\sanymore.\sAn\sextension\sor\sa\sprogram\sintegrating\swith\sTcl\sneed\sto\sprovide\sa\scompat\sdefinition\sas\sa\sdrop-in\sreplacement\s(as\syou\sdescribe).\sIs\sthis\sreally\snecessary\sand\sas\sintended?\r\n\r\n>\sWell,\sTcl\sdoesn't\sinstall\s<tommath.h>\sbecause\sit\scould\slead\sto\sa\sconflict\swith\sthe\sofficial\slibtommath\sversion.\r\n\r\nThe\salternative\sbeing\sthat\severy\stclTomMath.h\sintegrator\sis\son\sits\sown\sregarding\stommath.h?\r\n\r\nIf\smy\sprogram\sor\sextension\swas\sbuilt\sagainst\sTcl\swith\sembedded\stommath,\sit\sshould\sprovide\sthe\snecessary\sdefinitions,\sdoesn't\sit?\sWhy\sdoesn't\sTcl\sprovide\sthis\scompat/tommath.h\s(taken\sfrom\sthe\sbundled\slibtommath\ssources)\sif\sa\ssystemwide\slibtommath\sis\snot\savailable\sor\soverriden\sby\s--without-system-libtommath\s(the\slatter\sis\sdescribed\sin\sthe\sTIP,\sat\sleast):\r\n\r\nSo,\sa\sTEA-based\sprogram\sor\sextension\swould\sbe\sset\sup\sin\sa\sway\sso\sthat,\swhen\sbuilt\sagainst\sa\sTcl\swith\sTCL_WITH_EXTERNAL_TOMMATH\sundefined,\sit\sreceives\scompiler\sflags\sincl.\s-I</path/to/tcl/includes/compat/>\sso\sit\spicks\sup\sthe\stommath.h\smatching\sthe\sbuilt-in\stommath\ssources.\sIf\sTCL_WITH_EXTERNAL_TOMMATH\swas\sdefined,\sTEA\swould\snot\sdeliver\sthis\sextra\s-I\s\sflag,\sso\sthe\ssystemwide\stommath.h\swould\sget\spicked\sup.\r\n\r\nI\sdon't\ssee\show\sthis\swould\sintroduce\sconflicts\s(unless\sa\sdeveloper\smesses\swith\sthe\sflags\son\sher\sown,\snot\susing\sTEA,\sresorting\sto\sTcl's\scompat/tommath.h\son\sfalse\sgrounds).\r\n\r\nWhat\sdo\syou\sthink?
J login mr_calvin
J mimetype text/plain
K 4663e0636f7a24b9363e67c7a3dd25e9e495be17
U mr_calvin
Z 9539b2492db09061729711999beb1c3c