Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6653b2e6e9de3affc35deb482fdc3b4d643586d1
Ticket: 1104873fffffffffffffffffffffffffffffffff
missing TCL_STORAGE_CLASS ?
User & Date: dgp on 2005-01-18 23:02:04
Changes

  1. assignee changed to: "davygrvy"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    When #include-ing both tcl.h and tk.h,
    a colleague notices this apparently
    inconsistent set of declarations:
    
    ...
    
      #ifdef __cplusplus
      #   define EXTERN extern "C" TCL_STORAGE_CLASS
      #else
      #   define EXTERN extern TCL_STORAGE_CLASS
      #endif
    
    ...
    
      typedef int (Tcl_PackageInitProc)
                   _ANSI_ARGS_((Tcl_Interp *interp));
    
    ...
    
      EXTERN void Tcl_StaticPackage 
                 _ANSI_ARGS_((Tcl_Interp * interp, 
                 char * pkgName, Tcl_PackageInitProc *
    initProc, 
                 Tcl_PackageInitProc * safeInitProc));
    
    ...
    
       EXTERN int Tk_Init _ANSI_ARGS_((Tcl_Interp * interp));
       EXTERN int Tk_SafeInit _ANSI_ARGS_((Tcl_Interp *
    interp));
    
    
    Colleague claims this inconsistency shows up
    when the Watcom compiler tries to compile
    
      Tcl_StaticPackage(interp, "Tk", Tk_Init, Tk_SafeInit);
    
    with complaints of a type mismatch between
    what Tcl_StaticPackage expects and what
    the Tk_*Init routines are declared to be.
    
    Further claim is that all would be well if the
    Tcl_PackageInitProc typedef were changed to:
    
        typedef TCL_STORAGE_CLASS 
                   int (Tcl_PackageInitProc)
                   _ANSI_ARGS_((Tcl_Interp *interp));
    
    I don't buy it; but I also don't understand this
    mess well enough to explain what might be
    wrong with his proposal.  Help?
    
  4. foundin changed to: "obsolete: 8.4.9"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "53. Configuration and Build Tools"
  10. title changed to: "missing TCL_STORAGE_CLASS ?"
  11. type changed to: "Bug"