|
2026-10-17
| ||
| 22:08 | Fix [7d41598b4d] Remove pre-C89 support from tclCompile.h check-in: 06f561d4c2 user: jan.nijtmans tags: trunk, main | |
| 01:50 | • Ticket [7d41598b4d] Remove pre-C89 support from tclCompile.h status still Cl... artifact: 9352b4e60e user: chrstphrchvz | |
| 01:47 | • Add attachment 7d41598b-9.1.diff to ticket [7d41598b4dff9d22|7d41598b4d... artifact: bc0f93c2c9 user: chrstphrchvz | |
| 01:47 | • Add attachment 7d41598b-9.0.diff to ticket [7d41598b4dff9d22|7d41598b4d... artifact: 18ee11ef04 user: chrstphrchvz | |
|
2026-10-09
| ||
| 14:12 | • Closed ticket [7d41598b4d]: Remove pre-C89 support from tclCompile.h plus 7 ... artifact: 419727dce5 user: jan.nijtmans | |
| 07:05 | • Ticket [7d41598b4d]: 4 changes artifact: 0f6152478a user: oehhar | |
|
2026-10-08
| ||
| 22:26 | • New ticket [7d41598b4d]. artifact: 0060861a33 user: chrstphrchvz | |
Remove pre-C89 support from tclCompile.h
Closed / Out of Date7d41598b4dff9d22f2169db7e7872416d1428d3dCreated 55 days agoUpdated 47 days ago
Descriptionmarkdown2026-10-08 22:26:28
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.
Referenced by1
06f561d4c2Fix [7d41598b4d] Remove pre-C89 support from tclCompile.h check-in2026-10-17 22:08:24
oehharwiki2026-10-09 07:05:03
Jea, just go for 9.0+
On 8.6, I compile with MS-VC6, which perhaps has caused this...
Thanks, Harald
jan.nijtmanswiki2026-10-09 14:12:23
Since this is already fixed in Tcl 9.0, it's not worth to take any risk for 8.6.
It's not worth the trouble. Sorry! What harm does it cause?
chrstphrchvzwiki2026-10-17 01:50:53
This is still present in 9.0/9.1; see attached patches. If someone could please take another look, I would appreciate it.
Log in (anonymous is fine) to add a comment.
Attachments:
- 7d41598b-9.1.diff [download] added by chrstphrchvz on 2026-10-17 01:47:52. [details]
- 7d41598b-9.0.diff [download] added by chrstphrchvz on 2026-10-17 01:47:52. [details]