Overview
| Artifact ID: | 6653b2e6e9de3affc35deb482fdc3b4d643586d1 |
|---|---|
| Ticket: | 1104873fffffffffffffffffffffffffffffffff
missing TCL_STORAGE_CLASS ? |
| User & Date: | dgp on 2005-01-18 23:02:04 |
Changes
- assignee changed to: "davygrvy"
- cmimetype changed to: "text/plain"
- 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? - foundin changed to: "obsolete: 8.4.9"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "53. Configuration and Build Tools"
- title changed to: "missing TCL_STORAGE_CLASS ?"
- type changed to: "Bug"