Skip to content
Tcl Source Code History Of Ticket 531931ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 531931ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 531931ffffffffffffffffffffffffffffffffff

  1. Ticket change [8461bd2f04] (rid 117545) by jcw on 2002-03-19 16:47:29:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "jcw"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "TCL_DEFS has SPC if "long long" allowed"
    11. type initialized to: "Bug"
  2. Ticket change [2a5c9b736e] (rid 118553) by hobbs on 2002-03-23 04:41:06:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      int64_t can't be used because it's a typedef that cannot 
      be "unsigned", and then you have to check for an unsigned 
      64-bit type.
      
      The way that the TEA stuff uses TCL_DEFS doesn't seem to 
      worry about the fact that it's defined as 'long\ long', 
      perhaps pointers for your build system can be taken from 
      there?
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. title changed to: "TCL_DEFS has SPC if "long long" allowed"
    5. username: "hobbs"
  3. Ticket change [731d9ce648] (rid 104988) by jcw on 2002-03-23 05:28:41:

    1. status changed to: "Closed"
  4. Ticket change [fc4c2e1aeb] (rid 108211) by jcw on 2002-03-23 05:28:42:

    1. closedate changed to: "2002-03-22T22:28:42"
    2. closer changed to: "jcw"
    3. icomment:
      Logged In: YES 
      user_id=1983
      
      I was trying to suggest a simpler solution, but I suppose the 
      tradeoff is debatable.
      
      Yes, I've worked around this in the way I now build things.
      
      Thanks.
      
      
      
    4. login: "jcw"
    5. mimetype: "text/plain"
    6. title changed to: "TCL_DEFS has SPC if "long long" allowed"
    7. username: "jcw"
  5. Ticket change [8f479fc9de] (rid 120256) by hobbs on 2002-03-23 05:31:18:

    1. closedate changed to: "2002-03-22T22:31:18"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      I think the problem is that the "unquoted" version that is 
      used by Tcl is what is needed for it to work in the C 
      code.  #defines are a capricious thing.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. title changed to: "TCL_DEFS has SPC if "long long" allowed"
    7. username: "hobbs"