Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 033d27c1d82f9c479946196a36e18470b6793e13
Ticket: 561301ffffffffffffffffffffffffffffffffff
#define layering in tclWinSock.c
User & Date: davygrvy on 2002-05-28 00:27:06
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    win/tclWinPort.h sets the following defines:
    
    /*
     * The following defines map from standard socket 
    names to our internal
     * wrappers that redirect through the winSock function 
    table (see the
     * file tclWinSock.c).
     */
    
    #define getservbynameTclWinGetServByName
    #define getsockoptTclWinGetSockOpt
    #define ntohsTclWinNToHS
    #define setsockoptTclWinSetSockOpt
    
    
    These are not undefined when building tclWinSock.c, so 
    the winSock function table (internally) has 
    winSock.TclWinNToHS for what should be 
    winSock.ntohs as the symbol name.  This isn't causing 
    any confusion as TclWinNToHS() calls 
    winSock.TclWinNToHS, but isn't a good way of doing 
    things and isn't what was meant to happen.
    
    Reminds me of the #define panic in tcl.h that causes 
    problems in Berkeley DB as it uses panic in a structure 
    name, and has caused a whole mess of problems for 
    me in the past.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "davygrvy"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "#define layering in tclWinSock.c"
  11. type changed to: "Patch"