Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2011-03-31
23:20 • Closed ticket [3124683fff]: platform specific stuff in (tcl|tk)Main.c plus 6... artifact: 229d10a1f7 user: sf-robot
2011-03-17
23:19 • Pending ticket [3124683fff]. artifact: 69c113f262 user: nijtmans
2010-12-01
23:20 • Ticket [3124683fff]: 4 changes artifact: f7a042bfab user: nijtmans
23:19 • Ticket [3124683fff]: 4 changes artifact: 5b66e5f17e user: nijtmans
23:19 • Add attachment tkMain.patch to ticket [3124683fff] artifact: 6e51ba1849 user: nijtmans
23:19 • Ticket [3124683fff] platform specific stuff in (tcl|tk)Main.c status still O... artifact: 13b47949ca user: nijtmans
23:19 • Add attachment tclMain.patch to ticket [3124683fff] artifact: ed99d7c9a2 user: nijtmans
23:19 • Ticket [3124683fff] platform specific stuff in (tcl|tk)Main.c status still O... artifact: b51fc3c1fe user: nijtmans
16:18 • New ticket [3124683fff]. artifact: 4e7d539c45 user: nijtmans

platform specific stuff in (tcl|tk)Main.c

Closed / Fixed3124683fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-12-01 16:18:27
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
nijtmansplain2010-12-01 23:19:12
File Added - 394948: tclMain.patch
nijtmansplain2010-12-01 23:19:44
File Added - 394949: tkMain.patch
nijtmansplain2010-12-01 23:19:48
File Added - 394950: tkMain.patch
nijtmansplain2010-12-01 23:20:36
File Deleted - 394950:
nijtmansplain2011-03-17 23:19:58
Fixed in HEAD now (Both for Tcl and Tk)

OK?
sf-robotplain2011-03-31 23:20:03
allow_comments - 1

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.

Attachments: