Skip to content
Tcl Source Code History Of Ticket 934697ffffffffff
Login

History Of Ticket 934697ffffffffff

Artifacts Associated With Ticket 934697ffffffffff

  1. Ticket change [b9f2eb210c] (rid 129232) by tauvan on 2004-04-14 03:50:01:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5
      
      My (3) suggestion is:
        change tcl.h
        however need to be sure of other machines
      
      Solves:
        warning: negative integer implicitly converted to unsigned type
      
      Condition:
          "OSX warnings and errors (1)" not required
          "OSX warnings and errors (2)" performed
          quick fix performed
          trash previous builds (not just clean)
      
      Results from (2):
        w/o (1) Total 10602  Passed 9717  Skipped 858  Failed 27
        w/ (1)  Total 10602  Passed 9717  Skipped 858  Failed 27
      
      Suggestion:
        change existing code to this:
      #if !defined(NO_STDARG)
      #   include <stdarg.h>
      #   undef __va_rounded_size(TYPE)
      #   undef __va_align(AP, TYPE)
      #   define __va_rounded_size(TYPE) ((sizeof (TYPE) + 3) & 
      (_BSD_SIZE_T_)(~3))
      #   define __va_align(AP, TYPE)\
           ((((unsigned long)(AP)) + ((__alignof__ (TYPE) == 16) ? 15 : 
      3))\
            & (_BSD_SIZE_T_)(~((__alignof__ (TYPE) == 16) ? 15 : 3)))
      #   define TCL_VARARGS(type, name) (type name, ...)
      #   define TCL_VARARGS_DEF(type, name) (type name, ...)
      #   define TCL_VARARGS_START(type, name, list) (va_start(list, 
      name), name)
      #else
      #   include <varargs.h>
      #   undef __va_rounded_size(TYPE)
      #   undef __va_align(AP, TYPE)
      #   define __va_rounded_size(TYPE) ((sizeof (TYPE) + 3) & 
      (_BSD_SIZE_T_)(~3))
      #   define __va_align(AP, TYPE)\
           ((((unsigned long)(AP)) + ((__alignof__ (TYPE) == 16) ? 15 : 
      3))\
            & (_BSD_SIZE_T_)(~((__alignof__ (TYPE) == 16) ? 15 : 3)))
      #   define TCL_VARARGS(type, name) ()
      #   define TCL_VARARGS_DEF(type, name) (va_alist)
      #   define TCL_VARARGS_START(type, name, list) \
      (va_start(list), va_arg(list, type))
      #endif
      
      Special Notes:
        The difference should be &(ing) with typecast of 
      (_BSD_SIZE_T_)
        Used this typecast to keep same width as sizeof (hopefully)
        Not sure about other platform headers but I think safe as
          I think va_arg standard?
      
      Results from (3):
        approx. 40 less warnings
        w/o (1) Total 10602  Passed 9717  Skipped 858  Failed 27
        w/ (1)  Total 10602  Passed 9717  Skipped 858  Failed 27
      
      Thanks.
      
    4. foundin initialized to: "obsolete: 8.4.6"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "tauvan"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "OSX warnings and errors (3)"
    11. type initialized to: "Bug"
  2. Ticket change [094174268f] (rid 89689) by dkf on 2004-04-14 15:56:28:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2004-04-14T08:56:28"
    3. closer changed to: "dkf"
    4. icomment:
      Logged In: YES 
      user_id=79902
      
      No.  Tcl is not broken and your suggested change will break
      other platforms.  It's also very ugly.  If you have a
      problem with this, file a bug report with Apple about their
      poor headers.
      
      (_BSD_SIZE_T is not defined on Linux, Solaris or Windows.)
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Rejected"
    8. status changed to: "Closed"
    9. username: "dkf"