Overview
| Artifact ID: | 0060861a33e67b8ca5be2904218170f8201f40a6f80f2a6a9e5530a24a509ede |
|---|---|
| Ticket: | 7d41598b4dff9d22f2169db7e7872416d1428d3d
Remove pre-C89 support from tclCompile.h |
| User & Date: | chrstphrchvz on 2026-10-08 22:26:28 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
In tclCompile.h: ``` /* * The TclGetInt1AtPtr macro is tricky because we want to do sign extension on * the 1-byte value. Unfortunately the "char" type isn't signed on all * platforms so sign-extension doesn't always happen automatically. Sometimes * we can explicitly declare the pointer to be signed, but other times we have * to explicitly sign-extend the value in software. */ #ifndef __CHAR_UNSIGNED__ # define TclGetInt1AtPtr(p) ((int) *((char *) p)) #elif defined(HAVE_SIGNED_CHAR) # define TclGetInt1AtPtr(p) ((int) *((signed char *) p)) #else # define TclGetInt1AtPtr(p) \ ((int) ((*((char *) p)) | ((*(p) & 0200) ? (-256) : 0))) #endif ``` C89 is required since Tcl 8.6. The definitions of `TclGetInt1AtPtr()` not using `signed char`, and the configure checks which define `__CHAR_UNSIGNED__` or `HAVE_SIGNED_CHAR`, are no longer needed. - foundin changed to: "8.6"
- is_private changed to: "0"
- login: "chrstphrchvz"
- priority changed to: "5 Medium"
- private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution changed to: "None"
- severity changed to: "Cosmetic"
- status changed to: "Open"
- submitter changed to: "chrstphrchvz"
- subsystem changed to: "47. Bytecode Compiler"
- title changed to: "Remove pre-C89 support from tclCompile.h"
- type changed to: "RFE"