<i>Code cleanups to support CHERI</i> status still Open with 4 other changes
by
.
D 2022-08-25T09:46:29.064
J assignee jan.nijtmans
J icomment Thank\syou\sfor\sthose\spatches!\sThe\s008_*\spatch\shas\salready\sbeen\sapplied\sto\score-8-6-branch\sand\sup.\sI\swill\shave\sa\slook\sat\sthe\sother\sones\sas\swell.\r\n\r\nOne\sremark:\sthe\sPTR2INT/INT2PTR\smacro's\sonly\sguarantee\sround-trip\sfrom\ssize_t\s->\spointer\s->\ssize_t\s(in\sTcl\s8.6\sit\swas\sint\s->\spointer\s->\sint),\snot\spointer\s->\ssize_t\s->\spointer,\ssince\ssize(size_t)\smight\sbe\ssmaller\sthan\ssizeof(void\s*).\sSo,\swhenever\ssize_t\sis\sinsufficient\sto\sstore\swhat\sthe\scode\swants,\suse\sa\spointer.\sI\sdon't\sthink\sthe\sPTR2INT/INT2PTR\sshould\sbe\smodified.\sIn\sstead\sthe\scode\sshould\sbe\smodified\snot\sto\suse\ssize_t/ptrdiff_t\sin\sthe\splaces\swhere\sit\sis\sproblematic.\r\n\r\nAnyway,\sThanks!\s\sI\swill\shave\sa\sfurther\slook.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 37108037b980ea6e705f56a9d983e05ee218dd0c
U jan.nijtmans
Z e3dadbc6a1c53ae624ac32603c87ebcd