Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0060861a33e67b8ca5be2904218170f8201f40a6f80f2a6a9e5530a24a509ede
Ticket: 7d41598b4dff9d22f2169db7e7872416d1428d3d
Remove pre-C89 support from tclCompile.h
User & Date: chrstphrchvz on 2026-10-08 22:26:28
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. 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.
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
  10. resolution changed to: "None"
  11. severity changed to: "Cosmetic"
  12. status changed to: "Open"
  13. submitter changed to: "chrstphrchvz"
  14. subsystem changed to: "47. Bytecode Compiler"
  15. title changed to: "Remove pre-C89 support from tclCompile.h"
  16. type changed to: "RFE"