Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 575eb8fb40240019f29289183628d2d894b5e54f
Ticket: 1cc44617e2b4ed0a29f75762d45fe46388260f74
Mechanism with 64 bit support in tcl.h does not work outside of core
User & Date: anonymous on 2017-03-24 17:33:14
Changes

  1. icomment:
    Yes, I trapped into a pitfall because of this comment in tcl.h:
    
    <verbatim>
     * TCL_WIDE_INT_IS_LONG - if wide ints are really longs (i.e. we're on a real
     *	64-bit system.)
    </verbatim>
    
    This comment "we're on a real 64-bit system" is misleading. That's why I've used this constant for testing whether it's a 64 bit machine. But probably I didn't understand the term "real" here.
    
    <p>
    BTW: And this shows that a modernization is more clear, because in C99 you can simply use:
    
    <verbatim>
    typedef uint64_t Tcl_WideInt;
    #define TCL_LL_MODIFIER __PRI64_PREFIX
    </verbatim>
    
    <p>
    But of course here the name TCL_LL_MODIFIER is not useful anymore, should be TCL_WIDE_INT_MODIFIER.
    
  2. login: "anonymous"
  3. mimetype: "text/html"