Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cf232d367c524d00b54399a8aa6fe9514c8ce19c
Ticket: 3508771fffffffffffffffffffffffffffffffff
load tclreg.dll in cygwin tclsh
User & Date: nijtmans on 2012-03-20 17:54:27
Changes

  1. icomment:
    Implementation for TclWinGetPlatformId,
    Tcl_WinUtfToTChar and Tcl_WinTCharToUtf
    done and committed to core-8-4-branch,
    core-8-5-branch and trunk.
    
    (Since cygwin now switched to tcl 8.5, it
    would not have been necessary to do it
    for Tcl 8.4, but it worked, so why not....)
    
    Added a dummy TclWinCPUID too, because
    this function is in slot 29, the last win32
    slot. win32 has more slots than unix, and
    this way all unused slots will be set to
    NULL in stead of some random value.
    And... TclWinCPUID is intel-specific, not
    Windows-specific: it can be implemented
    on UNIX and cygwin as well, the only
    requirement is that it has an Intel (or AMD)
    processor. The default implementation
    simply returns TCL_ERROR.
    
    The functions Tcl_WinUtfToTChar and
    Tcl_WinTCharToUtf had the problem
    that MAC_OSX has all UNIX functions
    as well, plus its own. Adding UNIX
    stub entries would mean that the
    two functions Tcl_MacOSXOpenBundleResources
    and Tcl_MacOSXOpenVersionedBundleResources
    would shift up!!  So I used the trick to put
    the two new functions in the place of the
    max functions. Tricky, but it works.
    
    So the Tcl_MacOSXOpenBundleResources
    stub entry has its own function on OSX, it
    contains the function Tcl_WinUtfToTChar
    on cygwin, and it has NULL for other
    UNIXes. This makes the function
    Tcl_WinUtfToTChar effectively hidden
    from Cygwin, but - hey - that's exactly
    what we want because it should only
    be callable by win32 extensions.
    
    Keeping open, because tclInt.decls
    contains more functions that could
    be called by win32 extensions.
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"