Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c93e5ded920ce9b6c3cf8caf3cd7bfdd7c4c7af5
Ticket: 419692ffffffffffffffffffffffffffffffffff
c++ & tcl.h inclusion of varargs.h
User & Date: dgp on 2001-04-28 12:31:19
Changes

  1. icomment:
    
    
    File Added - 5805: stdarg.patch
    
    Logged In: YES 
    user_id=80530
    
    This report accurately describes standard C++.  In fact,
    in our own C++ code that embeds the Tcl library, we
    always include tcl.h like so:
    
    #ifdef __cplusplus
    extern "C" {
    #  ifndef HAS_STDARG
    #    define HAS_STDARG
    #  endif
    #endif
    
    #include <tcl.h>
    
    #ifdef __cplusplus
    }// end of extern "C"
    #endif
    
    However, Tcl has a history of supporting lots of
    nonstandard compilers.  Lines 206-208 of tcl.h
    indicate that at least at one time it was useful
    to support a compiler that defined __cplusplus,
    but preferred <varargs.h> to <stdarg.h>.
    
    Unfortunately those lines date back to the pre-CVS
    days of Tcl, so I can't retrieve any CVS history that
    explains their purpose.
    
    I have no objection to the request, but I would like
    to understand the purpose of lines 206-208 before we
    (effectively) yank them out.
    
    In case we decide to go ahead with this, I attach the
    patch.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. subsystem changed to: "69. Other"
  5. username: "dgp"