Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f4b874311cb855d46affb23e53e829227c84ab88
Ticket: 419694ffffffffffffffffffffffffffffffffff
c++ & tcl.h inclusion of varargs.h
User & Date: nobody on 2001-04-28 03:57:48
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Regarding the inclusion of stdarg.h vs varargs.h in
    tcl.h.
    
    The ISO C++ standard, Section 16.8, says that whether
    __STDC__ is set, and the value it is set to, is
    implementation-defined.  I.e., it's useless for C++. 
    As a matter of fact, some C++ compilers (e.g. KAI's
    KCC) define it or not define it according to the custom 
    of the vendor's C++ compiler, since the vendor's
    headers expect likewise. 
    
    The proper fix is for the header file to adhere to the
    rules in Section 16.8, and use: 
    
    #if defined(__STDC__) || defined(HAS_STDARG) || \  
    defined(__cplusplus)
    #   include <stdarg.h>
    
    etc.  Alternately define HAS_STDARG if __cplusplus
    is defined.
    
    
    
  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: "nobody"
  9. subsystem changed to: "52. Portability Support"
  10. title changed to: "c++ & tcl.h inclusion of varargs.h"
  11. type changed to: "Bug"