<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-24T15:02:56.760
J icomment I\sdon't\shave\sa\s64\sbit\sarchitecture,\sso\sI\scannot\stest.\sOn\smy\s32\sbit\smachine\sindeed\sthe\smechanism\sworks.\sBut\sI\srefer\sto\sverbal\sstatements:\r\n\r\n<ol>\r\n<li><p>\r\nI\sasked\sFrancois\sVogel\s-\she\sis\scompiling\sunder\sWindows\son\sa\s64\sbit\sarchitecture\s-\swhether\sthe\sconstant\sTCL_WIDE_INT_IS_LONG\sis\sdefined,\sand\she\stested\swith:\r\n<verbatim>\r\n#ifdef\sTCL_WIDE_INT_IS_LONG\r\n#\serror\shere\r\n#endif\r\n</verbatim>\r\nHis\sresponse\swas\sthat\sthe\scompiler\saccepted,\swith\sother\swords,\sTCL_WIDE_INT_IS_LONG\sis\snot\sdefined,\salthough\she\shas\sa\s64\sbit\smachine.\r\n</li>\r\n\r\n<li><p>\r\nSee\s<a\shref="http://core.tcl.tk/tk/info/cd374e7d05710373">[cd374e7d]</a>\sand\s<a\shref="http://core.tcl.tk/tk/info/f80552981cbc2f84">[f8055298]</a>,\sthe\sauthor\ssays\s"TCL_WIDE_INT_IS_LONG\sdoesn't\sbehave\sas\sexpected\son\sWIN64".\sI\sconclude\sthat\sTCL_WIDE_INT_IS_LONG\swasn't\sset\son\shis\s64\sbit\smachine.\r\n</li>\r\n</ol>\r\n\r\nWhat's\swrong\swith\smy\sanalysis\sof\stcl.h,\sdue\sto\smy\sanalysis\sit\scannot\swork.\sCertainly\sit\sworks\sif\sTCL_WIDE_INT_IS_LONG\sor\sTCL_WIDE_INT_TYPE\sis\salready\sproperly\sdefined\sby\scall\sof\scompiler\s-\s<pre>gcc\s-DTCL_WIDE_INT_IS_LONG=1</pre>\s-\sis\sit\spossible\sthat\sin\syour\stest\senvironment\sthe\smakefile\scontains\sthis\sdefinition?.\sOutside\sof\sTcl\score,\swhen\sTCL_WIDE_INT_IS_LONG\sis\snot\spredefined,\sthe\smechanism\scannot\swork.\r\n\r\n<p>\r\nIf\syou\sremove\s-DTCL_WIDE_INT_IS_LONG=1,\swhat\shappens\snow?\r\n\r\n<p>\r\nIf\sit\sworks\salthough\syou\shave\sremoved\s-DTCL_WIDE_INT_IS_LONG=1,\sin\swhich\sline\sof\stcl.h\sthe\scorrect\ssetup\s(TCL_WIDE_INT_IS_LONG=1)\swill\sbe\sdone?
J login anonymous
J mimetype text/html
K 1cc44617e2b4ed0a29f75762d45fe46388260f74
U anonymous
Z 6ea3f38e966aa6fab4dc194d8537ede9