Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8461bd2f0441f421230e2ad27a5c54dfeba9702a
Ticket: 531931ffffffffffffffffffffffffffffffffff
TCL_DEFS has SPC if "long long" allowed
User & Date: jcw on 2002-03-19 16:47:29
Changes

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    On my Linux box with 64-bit support, the TCL_DEFS 
    variable definition in tclConfig.sh has the form:
    
      TCLDEFS=' .... -Dblah=long\ long ...'
    
    That is extremely hard to use in shell scripts 
    (impossible?), because the quoting gets lost.  The 
    following test script fails, when run in tcl/unix/:
    
      . tclConfig.sh
      gcc -c $TCL_DEFS tclAppInit.c
    
    The error is that it loses the backslash, and 
    complains about not finding the source file named 
    "long".
    
    I've tried all sorts of quoting tactics, to no avail.
    
    One workaround is to add the following to tcl.h:
    #define TCL_LONGLONG long long
    Then, alter the logic to emit the following to 
    tclCobfig.sh instead:
    
      TCLDEFS=' .... -Dblah=TCL_LONGLONG ...'
    
    There's also a "int64_t" defined on Linux in 
    "stdint.h", but that file is probably not available 
    everywhere.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jcw"
  9. subsystem changed to: "53. Configuration and Build Tools"
  10. title changed to: "TCL_DEFS has SPC if "long long" allowed"
  11. type changed to: "Bug"