Skip to content
Tcl Source Code Artifact [0060861a33]
Login

Artifact [0060861a33]

Artifact 0060861a33e67b8ca5be2904218170f8201f40a6f80f2a6a9e5530a24a509ede:

Ticket change [0060861a33] - New ticket [7d41598b4dff9d22|7d41598b4d] <i>Remove pre-C89 support from tclCompile.h</i>. by chrstphrchvz on 2026-10-08 22:26:28.
D 2026-10-08T22:26:28.399
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment In\stclCompile.h:\r\n\r\n```\r\n/*\r\n\s*\sThe\sTclGetInt1AtPtr\smacro\sis\stricky\sbecause\swe\swant\sto\sdo\ssign\sextension\son\r\n\s*\sthe\s1-byte\svalue.\sUnfortunately\sthe\s"char"\stype\sisn't\ssigned\son\sall\r\n\s*\splatforms\sso\ssign-extension\sdoesn't\salways\shappen\sautomatically.\sSometimes\r\n\s*\swe\scan\sexplicitly\sdeclare\sthe\spointer\sto\sbe\ssigned,\sbut\sother\stimes\swe\shave\r\n\s*\sto\sexplicitly\ssign-extend\sthe\svalue\sin\ssoftware.\r\n\s*/\r\n\r\n#ifndef\s__CHAR_UNSIGNED__\r\n#\s\s\sdefine\sTclGetInt1AtPtr(p)\s((int)\s*((char\s*)\sp))\r\n#elif\sdefined(HAVE_SIGNED_CHAR)\r\n#\s\s\sdefine\sTclGetInt1AtPtr(p)\s((int)\s*((signed\schar\s*)\sp))\r\n#else\r\n#\s\s\sdefine\sTclGetInt1AtPtr(p)\s\\\r\n\s\s\s\s((int)\s((*((char\s*)\sp))\s|\s((*(p)\s&\s0200)\s?\s(-256)\s:\s0)))\r\n#endif\r\n```\r\n\r\nC89\sis\srequired\ssince\sTcl\s8.6.\sThe\sdefinitions\sof\s`TclGetInt1AtPtr()`\snot\susing\s`signed\schar`,\sand\sthe\sconfigure\schecks\swhich\sdefine\s`__CHAR_UNSIGNED__`\sor\s`HAVE_SIGNED_CHAR`,\sare\sno\slonger\sneeded.
J foundin 8.6
J is_private 0
J login chrstphrchvz
J priority 5\sMedium
J private_contact 6133eb3026f9b10aa9b7b48da92ae2834fc225b0
J resolution None
J severity Cosmetic
J status Open
J submitter chrstphrchvz
J subsystem 47.\sBytecode\sCompiler
J title Remove\spre-C89\ssupport\sfrom\stclCompile.h
J type RFE
K 7d41598b4dff9d22f2169db7e7872416d1428d3d
U chrstphrchvz
Z 1d74bcecefa6eda7de12988e9a95097f