Skip to content
Tcl Source Code Update of ”Migrating C extensions to Tcl 9”
Login

Update of ”Migrating C extensions to Tcl 9”

Overview

Artifact ID: 521aff5cedf699da14e544774b5e8fd9ef52d901ea1cda1b6cf9217246b789c9
Page Name:Migrating C extensions to Tcl 9
Date: 2023-10-30 18:35:45
Original User: griffin
Mimetype:text/x-markdown
Parent: f8e4d5f48a5a05e2d9c1da0c43923cf553c87eb6b5944235aa886827f55bc193 (diff)
Next 478d2e716785ad3d63e13a856b4f93e8fb632cf52faadf876a654a89a29a2a3b
Content

(Work in progress...)

64-bit support

Tcl_Size etc.

TBD

Unicode support

32-bit Tcl_UniChar, profiles...

TBD

Tcl_ObjType versioning

The Tcl value system has been extended. The Tcl_ObjType has additional (optional) fields. Any Tcl extensions, or embedded integration with Tcl, that has a custom Tcl_ObjType value defined, should review these changes. Existing code should compile and execute just fine, unless the particular implementation is using any "creative" programming. In simpler terms, the Tcl_ObjType structure is larger. It should be initialzed properly without any changes needed, but YMMV.

Please see the Tcl_RegisterObjType manual page for more details, as well as TIPs #644 and #636.

Abstract lists

An abstract list is a custom Tcl Value (custom Tcl_ObjType) that can be treated as a Tcl List at the script level without causing the value to be converted to a List type. To make this possible, the custom type must implment a set of accessor functions that allow the various list commands to access the value "elements" directly.

See the Tcl_RegisterObjType manual page for more details, as well as TIPs #644 and #636.