<i>Mechanism with 64 bit support in tcl.h does not work outside of core</i> status still Open with 3 other changes
by
.
D 2017-03-24T17:33:14.607
J icomment Yes,\sI\strapped\sinto\sa\spitfall\sbecause\sof\sthis\scomment\sin\stcl.h:\r\n\r\n<verbatim>\r\n\s*\sTCL_WIDE_INT_IS_LONG\s-\sif\swide\sints\sare\sreally\slongs\s(i.e.\swe're\son\sa\sreal\r\n\s*\t64-bit\ssystem.)\r\n</verbatim>\r\n\r\nThis\scomment\s"we're\son\sa\sreal\s64-bit\ssystem"\sis\smisleading.\sThat's\swhy\sI've\sused\sthis\sconstant\sfor\stesting\swhether\sit's\sa\s64\sbit\smachine.\sBut\sprobably\sI\sdidn't\sunderstand\sthe\sterm\s"real"\shere.\r\n\r\n<p>\r\nBTW:\sAnd\sthis\sshows\sthat\sa\smodernization\sis\smore\sclear,\sbecause\sin\sC99\syou\scan\ssimply\suse:\r\n\r\n<verbatim>\r\ntypedef\suint64_t\sTcl_WideInt;\r\n#define\sTCL_LL_MODIFIER\s__PRI64_PREFIX\r\n</verbatim>\r\n\r\n<p>\r\nBut\sof\scourse\shere\sthe\sname\sTCL_LL_MODIFIER\sis\snot\suseful\sanymore,\sshould\sbe\sTCL_WIDE_INT_MODIFIER.
J login anonymous
J mimetype text/html
K 1cc44617e2b4ed0a29f75762d45fe46388260f74
U anonymous
Z 9d6c4002fa8784aeacff487c987e64bc