Skip to content
Tcl Source Code History Of Ticket 633990ffff
Login

History Of Ticket 633990ffff

Artifacts Associated With Ticket 633990ffff

  1. Ticket change [0147a9bfce] (rid 119451) by edwardross on 2002-11-05 19:27:37:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      PROBLEM
      ---------------
      
      in tcl.h TCL_STORAGE_CLASS is correctly defined arround
      line 249 with the following:
      
      #undef TCL_STORAGE_CLASS
      #ifdef BUILD_tcl
      # define TCL_STORAGE_CLASS DLLEXPORT
      #else
      # ifdef USE_TCL_STUBS
      #  define TCL_STORAGE_CLASS
      # else
      #  define TCL_STORAGE_CLASS DLLIMPORT
      # endif
      #endif
      
      However later in the same file arround line 1691, it is
      incorrectly defined as:
      
      #undef TCL_STORAGE_CLASS
      #define TCL_STORAGE_CLASS
      
      EXTERN intTcl_AppInit _ANSI_ARGS_((Tcl_Interp *interp));
      
      #endif /* RESOURCE_INCLUDED */
      
      #undef TCL_STORAGE_CLASS
      #define TCL_STORAGE_CLASS DLLIMPORT
      
      This usually doesn't cause any problems, but if you
      then try to link with proWrap.h, this incorrect
      definition of TCL_STORAGE_CLASS means that we can't
      link.  Would also be a problem for linking with static
      libs rather than dlls  (obviously talking about on
      windows here).
      
      Workaround
      ------------------
      
      Undefine TCL_STORAGE_CLASS before include proWrap.h.
      
      Possible Resolution
      -----------------------------
      
      (1) change the definition at line 249 to:
      
      #ifdef __cplusplus
      #  define HEAD_EXTERN extern "C"
      #else
      #  define EXTERN extern TCL_STORAGE_CLASS
      #endif
      
      #define EXTERN HEAD_EXTERN TCL_STORAGE_CLASS
      
      (2) Remove all further defines/undefines for
      TCL_STORAGE_CLASS at line 1694 etc.
      
      (3) change the declaration at line 1694 to:
      EXTERN_HEAD int Tcl_AppInit _ANSI_ARGS_((Tcl_Interp
      *interp));
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "edwardross"
    9. subsystem initialized to: "40. Dynamic Loading"
    10. title initialized to: "tcl.h always makes incorrect #define"
    11. type initialized to: "Bug"
  2. Ticket change [c355564c3c] (rid 111640) by edwardross on 2002-11-06 02:27:38:

    1. icomment:
      
      
      File Added - 34689: tcl.h
      
      
      
    2. login: "edwardross"
    3. mimetype: "text/plain"
    4. username: "edwardross"
  3. Add attachment "tcl.h" [41a4591fa5] (rid 116226) by edwardross on 2002-11-06 02:27:38.

  4. Ticket change [028ba9292a] (rid 119669) by davygrvy on 2002-12-11 05:36:35:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      See TIP #60
      
      IMO, storage class is a big mess in Tcl.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  5. Ticket change [3082c2de4c] (rid 93269) by kennykb on 2003-02-17 02:50:53:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=99768
      
      Jeff, what's the proper TEA2 thing to do here? I know that others
      build extensions quite successfully even with TclPro headers.
      I'm thinking that this is either the original submitter doing something
      wrong, or else something amiss in <prowrap.h>.
      
      
    3. login: "kennykb"
    4. mimetype: "text/plain"
    5. username: "kennykb"
  6. Ticket change [219c7dcf2b] (rid 130618) by nobody on 2003-02-17 03:13:38:

    1. icomment:
      Logged In: NO 
      
      It is possible that I did something wrong.  However, it is
      clear that the header file is incorrect.
      
      What could be a valid reason for undefing TCL_STORAGE_CLASS
      and then redefining it as DLLIMPORT?
      
      It is obvious from the initial definition (arround
      line 249) that there are three possible correct values.
      
      The undefining of the TCL_STORAGE_CLASS is a complete hack.
       It is simply incorrect!
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  7. Ticket change [e959741e31] (rid 104807) by hobbs on 2003-07-19 02:43:59:

    1. assignee changed to: "davygrvy"
  8. Ticket change [0761c4b3ae] (rid 89387) by davygrvy on 2003-07-19 02:59:20:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=7549
      
      Please see tip#60, I have nothing to say on this specific 
      problem except that it is covered there.
      
      
    3. login: "davygrvy"
    4. mimetype: "text/plain"
    5. username: "davygrvy"
  9. Ticket change [e4042f06bb] (rid 87890) by edwardross on 2003-07-19 03:00:31:

    1. assignee changed to: "davygrvy"
    2. icomment:
      Logged In: YES 
      user_id=578816
      
      Looks like I made a mistake in my suggested resolution. 
      Perhaps I meant:
      
      Possible Resolution
      -----------------------------
      
      (1) ADD the following definition after the definition of
      TCL_STORAGE CLASS:
      
      #ifdef __cplusplus
      # define HEAD_EXTERN extern "C"
      #else
      # define HEAD_EXTERN extern
      #endif
      
      #define EXTERN HEAD_EXTERN TCL_STORAGE_CLASS
      
      (2) Remove all further defines/undefines for
      TCL_STORAGE_CLASS at line 1694 etc.
      
      (3) change the declaration at line 1694 to:
      HEAD_EXTERN int Tcl_AppInit _ANSI_ARGS_((Tcl_Interp
      *interp)); 
      
      
    3. login: "edwardross"
    4. mimetype: "text/plain"
    5. username: "edwardross"
  10. Ticket change [36d06fee61] (rid 107170) by davygrvy on 2003-07-19 03:03:13:

    1. assignee changed to: "hobbs"
  11. Ticket change [9896415abb] (rid 110631) by dgp on 2003-11-13 08:55:46:

    1. foundin changed to: "obsolete: 8.4.1"
  12. Ticket change [4c160c37b7] (rid 126815) by hobbs on 2007-06-13 02:46:24:

    1. closedate changed to: "2007-06-12T19:46:24"
    2. closer changed to: "hobbs"
    3. resolution changed to: "Out of Date"
    4. status changed to: "Closed"