Skip to content

Tcl/tk 9 support#12

Open
rwmjones wants to merge 6 commits intogarrigue:masterfrom
rwmjones:tcl-tk-9
Open

Tcl/tk 9 support#12
rwmjones wants to merge 6 commits intogarrigue:masterfrom
rwmjones:tcl-tk-9

Conversation

@rwmjones
Copy link
Copy Markdown

This is a first pass that at least compiles with Tcl/Tk 9.0.

The hardest part is that the old argc/argv interface for many functions has been completely removed, see https://core.tcl-lang.org/tips/doc/main/tip/647.md. My attempt to work around that is to convert the argc/argv to an object array. It ought to work, but I don't know how to test this is correct.

This requires #5 & #6

@jamesjer

jamesjer and others added 6 commits February 17, 2025 11:15
All of these macros were removed from header files in Tcl/Tk 9.0.

* Erase _ANSI_ARGS_, no compiler has needed this for about 35 years.

* Replace Tk_Offset with offsetof.  Apparently some compilers lacked
  this, but none that we care about.

* Replace CONST84 with const.
In Tcl/Tk 9.0, some features which were previously in Tk moved down
into Tcl.  There is also a small change to the prototype of
Tcl_FreeProc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants