Skip to content
Tcl Source Code Artifact [411961b13f]
Login

Artifact [411961b13f]

Artifact 411961b13f71d327294ced024df59cad1fbedba3:

Ticket change [411961b13f] - New ticket [419528ffffffffff|419528ffff] <i>Non portable code in tclIndexObj.c</i>. by nobody on 2001-04-27 16:38:07.
D 2001-04-27T16:38:07
J assignee nobody
J cmimetype text/plain
J comment I\shad\sa\sproblem\swith\sporting\stcl\sto\sa\sCray\smachine.\nThe\scode\sat\slines\s197,\s242-245\sin\stclIndexObj.c\sassumes\na\sbyte\naddressable\smachine.\s\sIt\scasts\sa\spointer\sto\s(size_t)\nand\sthen\sadds\sa\nbyte\scount\sto\scome\sup\swith\sa\s(char**).\s\sThis\sonly\sworks\non\sa\sbyte\naddressable\smachine.\s\sIt\sshould\sbe\scasting\sto\s(char*)\ninstead\sof\s(size_t)\nsince\sit\sis\sadding\sa\snumber\sof\scharacters.\n\nI\salso\shad\sa\sproblem\swith\stk\sroutine\stkUnixFont.c\sat\nline\s41.\n#define\s\s\s\s\sFONTMAP_PAGES\s\\\n\s\s\s\s\s\s\s(1\s<<\s(sizeof(Tcl_UniChar)*8\s-\sFONTMAP_SHIFT))\nThere\sis\san\simplicit\sassumption\sthat\nsizeof(Tcl_UniChar)\sis\s2\sbytes.\nOn\sa\sCray\sit\sis\s8\sbytes,\sso\sthat\s\sFONTMAP_PAGES\sbecomes\na\shuge\nnumber,\swhich\sis\sused\sto\sdefine\sthe\ssize\sof\s\san\sarray\nin\sstructure\s\sFontFamily.\nMy\swork\saround\swas\sto\shardcode\sa\s2\sfor\nsizeof(Tcl_UniChar).\n\nI\sbelieve\sthese\sproblems\sare\sin\sthe\s8.4\sversions\salso.\n\nClay\sAndreasen\s([email protected])\n
J foundin obsolete:\s8.3.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 52.\sPortability\sSupport
J title Non\sportable\scode\sin\stclIndexObj.c
J type Bug
K 419528ffffffffffffffffffffffffffffffffff
U nobody
Z cc5c9d6d34fd74a7e3d309974e1e74f8