Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a26d2c55e4791c925ca4e4cee93b1649c1aa2af4
Ticket: 3588687fffffffffffffffffffffffffffffffff
Tcl_InitStubs() Broken As Designed
User & Date: nijtmans on 2012-12-05 16:56:53
Changes

  1. icomment:
    Updated the "bug-3588687" branch, trying to get closer to our common goal.
    Two remarks:
    - I don't think tcl.h should be modified, for binary compatibility with
      older 8.6.x releases. So, in stead defined TclInitStubs() in tclInt.h,
      and let the linking occur through Tcl_InitStubs(). We have it, so why
      not use it?  In Tcl 9.0 we can then make the step to change
      Tcl_InitStubs to a macro.
    - The usage of TCL_MAJOR_VERSION and TCL_VERSION in tclStubLib.c
      hinders the adoption of a version-less stub library. I was under the
      impression that the tcl version should be brought in through tcl.h and
      that tclStubLib.c should not reference TCL_VERSION nor
      TCL_MAJOR_VERSION. So I suggest to remove the check in
      HasStubSupport(), in stead check for tclversion[0] == version[0]
      in TclInitStubs. Still that would not be 100% as desired, but
      at least the stub library then becomes completely independant
      from tcl.h. In Tcl 9.0 we could rename tclstub9.0.a to tclstub.a
      (and change tcl.h to use a macro), and  this stub library would
      be usable for Tcl 8.6 (using Tcl_InitStubs), 9.0, 9.1 ... (using
      TclInitStubs)
    
    Wouldn't that be better (although we aren't there yet)? Feedback appreciated!
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"