Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 191ad05479a432eabbad1094a5a6bddc6335fe42
Ticket: 613117ffffffffffffffffffffffffffffffffff
Memory corruption (in expr?)
User & Date: jkbonfield on 2002-09-23 23:53:55
Changes

  1. icomment:
    Logged In: YES 
    user_id=154581
    
    Ok I said I'd produce a patch, but I think I'm going to break 
    things royally if I try!
    
    I see that the correct Makefile defines to get things working 
    for me are -DTCL_WIDE_INT_TYPE_IS_LONG 
    -DTCL_WIDE_INT=long. In addition to this we need to add a 
    definition of TCL_LL_MODIFIER to be "l" for this case. The 
    code looks incomplete and when TCL_WIDE_INT_TYPE is 
    indeed long this never gets defined. Eg as an (incomplete) 
    patch:
    
    *** tcl.h~      Wed Sep 18 15:54:35 2002
    --- tcl.h       Mon Sep 23 17:45:20 2002
    ***************
    *** 401,406 ****
    --- 401,407 ----
      #   define Tcl_LongAsWide(val)                ((long)(val))
      #   define Tcl_WideAsDouble(val)      ((double)((long)(val)))
      #   define Tcl_DoubleAsWide(val)      ((long)((double)(val)))
    + #   define TCL_LL_MODIFIER            "l"
      #else /* TCL_WIDE_INT_IS_LONG */
      #   ifndef __WIN32__
      #      ifdef HAVE_STRUCT_STAT64
    
    How to define TCL_WIDE_INT_IS_LONG? Looks like tcl.m4 
    and the SC_TCL_64BIT_FLAGS macro. This is where I start 
    failing, not having enough knowledge of autoconf. I think an 
    AC_TRY run of "int main() {exit(sizeof(long)==8);}" may 
    suffice, but I'm not certain.
    
    
    
  2. login: "jkbonfield"
  3. mimetype: "text/plain"
  4. username: "jkbonfield"