Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4e7d539c45d09d5e0a1c39a0fd7fd87fca2a453e
Ticket: 3124683fffffffffffffffffffffffffffffffff
platform specific stuff in (tcl|tk)Main.c
User & Date: nijtmans on 2010-12-01 16:18:27
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Don Porter wrote to me:
    > I suspect there may be another way, and you may be overlooking some
    > encoding support routines that can keep platform specific stuff out
    > of the generic/*.c files.  But I could also be wrong about that.
    
    Here is my attempt to move as most as possible platform-dependant
    stuff out of (tcl|tk)Main.c.
    
    - Implemented a static NewNativeObj() function, so we no longer have to
      Tcl_SetStartupScript using native encoding, en then later read it again
      and convert it to UTF-8. Now every native-to-obj conversions can be
      done in one step.
    - 
    
    And for tkMain.c, there are some additional
    improvements:
    
    - converted ThreadSpecificData in InteractiveState (just as
    already done in tclMain.c), wich an additional 'gotPartial'
    field. This makes Tk_MainEx thread-safe. Moved the
    inChannel and tty variables there too.
    - Use the InteractiveState as clientData in
      Tcl_CreateChannelHandler, so we still can unregister
      when stdin becomes invalid.
    - use Tcl_GetStdChannel(TCL_STDOUT) in stead of
      Tcl_GetChannel(interp, "stdout", NULL), as in tclMain.c
    
    Regards,
             Jan Nijtmans
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "50. Embedding Support"
  11. title changed to: "platform specific stuff in (tcl|tk)Main.c"
  12. type changed to: "Patch"