.
D 2000-10-26T01:01:37
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s863\sBug\nVersion:\s8.0.3\nSubmitDate:\s'1998-11-25'\nLastModified:\s'1999-10-21'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'1999-10-21'\nFixedInVersion:\s8.2\nClosedDate:\s'2000-10-25'\n\n\nDate:\sSun,\s8\sNov\s1998\s21:35:49\s-0800\s(PST)\nTo:\[email protected]\nCc:\[email protected]\nSubject:\spointers\sare\snot\sintegers\s(Tcl\scode\sis\snon\sstandard)\nFrom:\[email protected]\nStatus:\sO\n\nTcl\s8.0.3\sBug\n\nemail:\s\[email protected]\nSupport:\s\sNone\nSeverity:\s\s1\nOperatingSystem:\s\sOther\nOperatingSystemVersion:\s\sNEC\sSuper-UX\sR8.2,\sCray\sUnicos\s9.2\nSynopsis:\s\spointers\sare\snot\sintegers\s(Tcl\scode\sis\snon\sstandard)\n\nComments:\nCan't\scompile\sand\sexecute\ssuccessfully\son\s64\sbit\ssystems.\sMany\sbugs\scan\sbe\scured\sby\susing\n#include\s<stddef.h>\s/*\sANSI\sstandard\s*/\nand\scasting\sto\stype\sptrdiff_t\nI\schanged\sunix/configure.in\sto\sinclude:\nAC_CHECK_HEADER(stddef.h,\stcl_ok=1,\stcl_ok=0)\nif\stest\s$tcl_ok\s=\s1;\sthen\nAC_CHECK_TYPE(ptrdiff_t,\sint)\nelse\n\s\s\s\sAC_DEFINE(NO_STDDEF_H)\nfi\nChanged\smany\soccurrences\sof\spointer\sdifferences\sbeing\streated\sas\sinteger.\se.g\ngeneric/regexp.c\shas\sin\sfunction\sregtail()\n\s\s\s\s\s\s\s\sif\s(OP(scan)\s==\sBACK)\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\soffset\s=\sscan\s-\sval;\n\s\s\s\s\s\s\s\selse\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\soffset\s=\sval\s-\sscan;\nwhich\sshould\sbe\n\s\s\s\s\s\s\s\sif\s(OP(scan)\s==\sBACK)\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\soffset\s=\s(ptr_diff_t)(scan\s-\sval);\n\s\s\s\s\s\s\s\selse\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\soffset\s=\s(ptrdiff_t)(val\s-\sscan);\nWhen\san\sinteger\sis\s32\sbits\sand\san\saddress\sis\s40\sbits,\sthe\soriginal\sdoesn't\swork.\sWhen\sa\schar\s*\ncomprises\sa\scharacter\soffset\sfollowed\sby\sa\sword\saddress,\sthe\ssubtraction\sis\snonsense.\sUnresolved\nproblems:\sWhat\sdid\sthe\sauthor(s)\sreally\smean\sin\ngeneric/tclCompile.c\sin\sthe\sfunction\s\sint\sTclObjIndexForString()\swhich\sattempts\n[\sline\s7032\s]\s\sto\screate\san\sinteger\sby\s\nobjIndex\s=\s(int)\sTcl_GetHashValue(hPtr);\n??\sHow\scan\sthis\swork\sif\sthe\sponter\sis\s64\sbits.\nTruncate\sand\sguess\sa\svalue?\s:-(\nCheers,\n\s\s\s\s\sLen\sMakin\n\n\n\n4/16/99\s-\sredman\s-\sthe\scode\sdescribed\sno\slonger\sexists\s(regexp.c)\sin\s8.1.\s\s8.1\stested\son\s64bit\sSolaris\sworks\sfine.\s\sWhether\sor\snot\sto\sfix\sin\s8.0.x\sis\sanother\squestion.\n--\nThis\shas\sbeen\sfixed\sfor\s8.1+,\swhich\sis\sthe\scurrent\sstable\srelease.\s\n--\s10/21/1999\shobbs\n\n
J foundin obsolete:\s8.0.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 10.\sObjects
J title pointers\sare\snot\sintegers\s(Tcl\scode\sis\snon\sstandard)\s-\s64\sbi
J type Bug
K 218520ffffffffffffffffffffffffffffffffff
U nobody
Z b97e796ebb4c35f6dce04d174f61de62