Skip to content
Tcl Source Code History Of Ticket 922727ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 922727ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 922727ffffffffffffffffffffffffffffffffff

  1. Ticket change [f3c5f9ffab] (rid 129776) by dgp on 2004-03-24 21:02:58:

    1. assignee initialized to: "das"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Over time it appears that the
      system of *.h files in Tcl have
      drifted away from the recommendations
      of the Engineering Manual.  In particular,
      the subset relationship of
      
         tcl.h < tclInt.h < tclPort.h
      
      has emerged, rather than the
      
         tcl.h < tclPort.h < tclInt.h
      
      that the EM recommmends.
      
      This patch restores things to
      my understanding of the EM.
      It will require platform testing.
      
      After this patch, any C file will only
      need to #include one of the 3 header
      files, and should choose the "smallest"
      one that satisfies.
      
      This patch also removes old headers
      that no longer matter, and merges some
      that make things simpler.
      
      One implication of this patch is that any
      C file that wants to #include tclInt.h will
      need the ability to also #include tclPort.h
      and the suitable tcl(Unix/Win)Port.h to
      take care of the #include dependencies.
      The traditional access to tclInt.h within
      a Tcl source distribution is sufficient to take
      care of this.
      
      Requesting first review from the MacOSX
      maintainers.
      
      
    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: "dgp"
    9. subsystem initialized to: "None"
    10. title initialized to: "Header reform"
    11. type initialized to: "RFE"
  2. Ticket change [6d99b3813e] (rid 128734) by dgp on 2004-03-25 04:02:58:

    1. icomment:
      
      
      File Added - 81243: headers.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [21ec3ccb6d] (rid 130663) by kennykb on 2004-03-26 02:27:32:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      Patch fails to compile on Windows-VC++.
      Changing line 15 of tclWinTime.c from
      
      #include "tclPort.h"
      
      to
      
      #include "tclInt.h"
      
      appears to fix the problem.  No new regression test
      failures observed.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  4. Ticket change [540785eae3] (rid 93867) by kennykb on 2004-03-26 03:18:01:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      Per dgp's request, I changed the #include back, but added
      (in tclInt.decls) the declaration:
      
      # Added in 8.5 as part of rationalizing header files
      
      declare 29 win {
          TclFile TclWinMakeFile(HANDLE handle)
      }
      
      With that declaration in place, the compilation gets through
      tclPort.h without trouble.  It still requires tclInt.h,
      nevertheless,
      to define the five symbols:
          'TclpInitLock', 
          'TclpInitUnlock', 
          'TCL_TSD_INIT', 
          'LONG_MAX', and 
          'LONG_MIN'.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  5. Ticket change [92454fe4da] (rid 120741) by jenglish on 2004-03-26 04:31:03:

    1. icomment:
      Logged In: YES 
      user_id=68433
      
      The 2004-03-24 patch merges the contents of tclWinInt.h into
      tclWinPort.h.  It might be worthwhile to keep these
      distinct.  That would help distinguish C source files that
      are intended to be platform-independent from those that are
      Windows (/Unix/Mac)-specific.
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  6. Ticket change [a0c6ee4582] (rid 96869) by dgp on 2004-03-30 02:12:35:

    1. assignee changed to: "patthoyts"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Here's a second attempt, incorporating
      the suggestions in the comments.
      
      Also, I changed both tclWinDde.c and
      tclWinReg.c to #include only tcl.h, in
      the hope that good packages should only
      need the public Tcl interface.  If that's not
      true, patches to make it true would be welcome.
      
      Please test, especially on Windows.
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  7. Ticket change [1e623569ec] (rid 90961) by dgp on 2004-03-30 02:12:36:

    1. icomment:
      
      
      File Added - 81792: headers-2.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [651b5c0773] (rid 92895) by kennykb on 2004-03-30 03:23:40:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      tclIOUtil.c needs:
      
      #ifdef __WIN32__
      #include "tclWinInt.h"
      #endif
      
      near the head of the file.
      
      tclWinLoad.c and tclWinSock.c both need
      
      #include "tclWinInt.h"
      
      tclWinDde.c needs tclInt.h to get TCL_TSD_INIT.
      Were it not for that (for example, if the TCL_TSD_INIT
      calls were to be replaced with calls to
      Tcl_GetThreadSpecificData), it could make do with
      #define WIN32_LEAN_AND_MEAN
      #include <windows.h>
      
      tclWinReg.c needs tclInt.h for TclWinGetPlatformId - don't
      know how, offhand, to avoid that.
      
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  9. Ticket change [cf41fe671e] (rid 112941) by dgp on 2004-03-30 04:00:40:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Updated patch.  Thanks for testing.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [6f7bdc0856] (rid 100325) by dgp on 2004-03-30 04:00:41:

    1. icomment:
      
      
      File Added - 81823: headers-3.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Add attachment "headers.patch" [0ab3623451] (rid 113870) by dgp on 2004-03-30 05:39:07.

  12. Ticket change [03a7c3df6c] (rid 119862) by dgp on 2004-03-30 05:39:07:

    1. assignee changed to: "das"
    2. icomment:
      
      
      File Deleted - 81823: 
      
      
      
      File Added - 81831: headers.patch
      
      Logged In: YES 
      user_id=80530
      
      
      tested patch, works on Unix and
      Win.  Any additional Mac OS X 
      comments?
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "7 High"
    6. username: "dgp"
  13. Ticket change [36ee77cfdc] (rid 107186) by dgp on 2004-04-07 05:37:53:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2004-04-06T22:37:53"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      committed to HEAD (8.5a2) for
      additional testing.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Accepted"
    8. status changed to: "Closed"
    9. username: "dgp"
  14. Ticket change [b7775b939f] (rid 125603) by das on 2004-04-20 15:00:16:

    1. icomment:
      
      
      File Added - 84358: tclPort.diff
      
      Logged In: YES 
      user_id=90580
      
      Don,
      sorry for the delay, finally getting back to this.
      
      while your patch greatly simplifies the internal header organization, the 
      issue I originally reported on tcl-core remains (broken macosx tk build):
      
      tclPort.h cannot be  used when it is installed outside of the tcl source 
      hierarchy (e.g. in /usr/local/include) because it #includes the platform 
      port headers via relative paths.
      I.e. it is currently not possible to #include tclPort.h when it is installed in /
      usr/local/include; or in Tcl.framework/PrivateHeaders, which is something 
      the OSX Tk build relies on.
      
      The attached patch fixes this for tclUnixPort.h, and adds related makefile 
      support. Something similar should be done for tclWinPort.h, can't test that 
      myself though.
      
      Note that tkPort.h already doesn't use relative paths when including 
      tkWinPort.h and tkMacOSXPort.h, probably a similar fix for tkUnixPort.h 
      should be applied there as well.
      
      If there are no objections I'll check this in (this is essentially the same 
      patch I originally posted to tcl-core).
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "das"
  15. Ticket change [89961f5ecd] (rid 127255) by das on 2004-04-20 15:11:25:

    1. icomment:
      Logged In: YES 
      user_id=90580
      
      I should add that I've checked that this change doesn't cause problems 
      with TEA extensions that use private headers, such as incrTcl, as the TEA 
      tcl.m4 has
          TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} 
      -I${TCL_PLATFORM_DIR_NATIVE}"
      i.e. the platform specific directory is already part of the include path and 
      so tclUnixPort.h can be included from tclPort.h without needing a relative 
      path. the same should be true for tclWinPort.h.
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  16. Ticket change [f460d5221c] (rid 129902) by dgp on 2004-04-21 00:00:34:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      I think that patch is on the right
      track, but it breaks the Tk build
      on my systems.  Does Tk just
      need the TCL_INCLUDES
      support you suggest for Itcl?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  17. Ticket change [7b44e97d03] (rid 90491) by dgp on 2004-04-21 00:37:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Attractive solutions include:
      
      1) Convert Tk to a TEA extension.
      
      2) Purge Tk of remaining dependence
           on tclInt.h
      
      Short of that, the attached patch is the
      quick and dirty workaround.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  18. Add attachment "tk.patch" [7ab592fd79] (rid 90377) by dgp on 2004-04-21 00:38:00.

  19. Ticket change [375dc48496] (rid 107261) by dgp on 2004-04-21 00:38:00:

    1. icomment:
      
      
      File Added - 84407: tk.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  20. Ticket change [f868362ed7] (rid 91530) by das on 2004-04-21 19:08:52:

    1. icomment:
      
      
      File Deleted - 84358: 
      
      
      
      File Added - 84506: tclPort.diff
      
      Logged In: YES 
      user_id=90580
      
      Don, thanks, forgot to diff tk...
      
      to better match with TEA, I would suggest using TCL_PLATFORM_DIR 
      instead of TCL_UNIX_DIR, esp. since a similar change is needed to tk/win/
      Makefile.in if tclWinPort.h is included without relative path in tclPort.h
      
      I've also verified that Tk/X11 still builds fine when tkUnixPort.h is included 
      without relative path in tkPort.h
      
      I've checked that cross compiling with win mingw of both tcl and tk still 
      works with these changes.
      Someone with access to VC++ needs to check that the same is true there.
      
      New patches for tcl and tk attached, these now remove all relative paths 
      in (Tcl|Tk)Port.h
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  21. Add attachment "tclPort.diff" [587291b069] (rid 117803) by das on 2004-04-21 19:08:52.

  22. Add attachment "tkPort.diff" [43e01c8cea] (rid 116633) by das on 2004-04-21 19:10:11.

  23. Ticket change [d5e42c8817] (rid 123711) by das on 2004-04-21 19:10:11:

    1. icomment:
      
      
      File Added - 84507: tkPort.diff
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  24. Ticket change [7257d0a3d4] (rid 100840) by dgp on 2004-04-21 21:35:15:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      those patches look fine, and
      test successfully on my systems.
      
      Make it so.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  25. Ticket change [0b80a923d9] (rid 113997) by das on 2004-04-24 13:01:14:

    1. icomment:
      Logged In: YES 
      user_id=90580
      
      committed patches to tcl & tk
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  26. Ticket change [e3adfbf2c2] (rid 87833) by das on 2004-04-24 15:54:35:

    1. icomment:
      
      
      File Added - 84890: tcl-install-private-headers.diff
      
      Logged In: YES 
      user_id=90580
      
      Now that internal headers can be installed outside of the source tree, the 
      attached patches add an new 'install-private-headers' target to the 
      Makefiles, to optionally install the private headers into $(includedir).
      
      Any objections to this going in?
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  27. Add attachment "tcl-install-private-headers.diff" [8caf479c2e] (rid 127784) by das on 2004-04-24 15:54:35.

  28. Ticket change [617db35b34] (rid 92247) by das on 2004-04-24 15:55:32:

    1. icomment:
      
      
      File Added - 84891: tk-install-private-headers.diff
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  29. Add attachment "tk-install-private-headers.diff" [4df3c3219e] (rid 127149) by das on 2004-04-24 15:55:32.

  30. Ticket change [fc2577ee1a] (rid 108178) by dgp on 2004-05-01 00:30:30:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Note that this effort exposed a few
      places where the separation of
      generic and platform-specific
      code is not as clean as it ought
      to be.  See Bugs 925620
      and 945447.  These matters should
      be cleaned up before we close this
      report.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  31. Ticket change [cf6494bde9] (rid 112971) by das on 2004-07-20 18:19:33:

    1. assignee changed to: "das"
    2. closedate changed to: "2004-07-20T11:19:33"
    3. closer changed to: "das"
    4. icomment:
      Logged In: YES 
      user_id=90580
      
      Committed the attached install-private-headers patches to tcl & tk HEAD
      
      
    5. login: "das"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "das"
  32. Ticket change [ae847fdb6d] (rid 101651) by das on 2004-07-20 18:26:31:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=90580
      
      ack, didn't see comment about this staying needing to stay open until 
      925620 is resolved, reopening.
      
      
    3. login: "das"
    4. mimetype: "text/plain"
    5. resolution changed to: "Accepted"
    6. status changed to: "Open"
    7. username: "das"
  33. Ticket change [a7a924819c] (rid 98846) by dgp on 2004-11-25 03:48:03:

    1. closedate changed to: "2004-11-24T20:48:03"
    2. closer changed to: "dgp"
    3. status changed to: "Closed"