Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d5f8bd356b0b5d126a8864535cd5b104121ae114
Ticket: 1104873fffffffffffffffffffffffffffffffff
missing TCL_STORAGE_CLASS ?
User & Date: mjdonahue on 2005-02-03 10:54:28
Changes

  1. icomment:
    Logged In: YES 
    user_id=1210132
    
    The watcom compiler complained about
    Tcl_StaticPackage/Tcl_PackageInitProc but not
    Tcl_CreateCommand/Tcl_CmdProc because Tk_Init was used as an
    argument to Tcl_StaticPackage, and Tk_Init is declared
    elsewhere in the Tk header files with a different type.
    
    However, on reflection, I think all the Tcl_*Proc typedef's
    should include some storage class info.  The watcom compiler
    didn't complain about these because these typedefs are not
    being applied to functions declared inside the Tcl library,
    but rather to user code.  But, the Tcl library is going to
    make calls into these functions, and it was built with
    certain assumptions about the calling convention for these
    user defined functions.  So it seems that information should
    be included in all the Tcl_*Proc typedefs.
    
    Maybe one shouldn't use the TCL_STORAGE_CLASS macro here,
    since these are functions outside the Tcl library, but
    instead define a new macro, something like
    FOREIGN_STORAGE_CLASS.  This new macro would *not* include
    the dllimport/dllexport qualifiers found in
    TCL_STORAGE_CLASS, but would include things like cdecl.  In
    this regard, check out the comment preceding the definition
    of Tcl_AppInit near the bottom of tcl.h.
    
    
  2. login: "mjdonahue"
  3. mimetype: "text/plain"
  4. username: "mjdonahue"