Download Latest Version tcl-8.6.15-installer-1.15.0-x64.msi (31.4 MB)
Email in envelope

Get an email when there's a new version of magicsplat

Home / cffi
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2024-12-01 1.4 kB
cffi2.0.3-src.tar.gz 2024-12-01 685.4 kB
cffi2.0.3-src.zip 2024-12-01 770.6 kB
cffi2.0b1-src.tgz 2024-10-21 658.1 kB
cffi2.0b1-src.zip 2024-10-21 767.2 kB
cffi2.0b1-bin-win.zip 2024-10-02 332.7 kB
cffi1.2.0-bin-win.zip 2022-09-21 188.9 kB
cffi1.2.0-src.tgz 2022-09-21 464.4 kB
cffi1.2.0-src.zip 2022-09-21 528.1 kB
cffi1.1.0-src.tgz 2022-08-17 461.9 kB
cffi1.1.0-src.zip 2022-08-17 526.3 kB
cffi1.1.0-bin-win.zip 2022-08-17 185.4 kB
cffi1.0.7-src.zip 2022-06-01 522.0 kB
cffi1.0.7-src.tgz 2022-06-01 457.1 kB
cffi1.0.7-bin-win.zip 2022-06-01 182.0 kB
cffi1.0b5-src.zip 2022-04-04 587.2 kB
cffi1.0b5-src.tgz 2022-04-04 479.4 kB
cffi1.0b5-bin-win.zip 2022-04-04 369.0 kB
cffi1.0b4-bin-win.zip 2022-02-06 176.8 kB
cffi1.0b4-src.tgz 2022-02-06 400.5 kB
cffi1.0b4-src.zip 2022-02-06 468.3 kB
cffi1.0b3-src.zip 2021-12-23 394.8 kB
cffi1.0b3-bin-win.zip 2021-12-23 151.7 kB
cffi1.0b3-src.tgz 2021-12-23 356.2 kB
cffi1.0b1-src.zip 2021-12-08 350.0 kB
cffi1.0b1-bin-win.zip 2021-12-08 153.0 kB
cffi1.0b1-src.tgz 2021-12-08 319.8 kB
cffi1.0b0-bin-win.zip 2021-11-20 152.1 kB
cffi1.0b0-src.tgz 2021-11-20 308.9 kB
cffi1.0b0-src.zip 2021-11-20 339.4 kB
cffi1.0a7-src.zip 2021-09-13 330.2 kB
cffi1.0a7-bin-win.zip 2021-09-13 161.8 kB
cffi1.0a7-src.tgz 2021-09-13 300.6 kB
cffi1.0a6-bin-win.zip 2021-06-22 153.7 kB
cffi1.0a6-src.zip 2021-06-22 306.0 kB
cffi1.0a6-src.tgz 2021-06-22 278.8 kB
Totals: 36 Items   13.3 MB 8

Tcl cffi package

The Tcl cffi package permits calling C functions in shared libraries from within Tcl scripts via either the libffi or dyncall open source libraries. The package supports Tcl 8.6 and 9.0+.

The source repository is at https://github.com/apnadkarni/tcl-cffi.

Documentation is at https://cffi.magicsplat.com. Some additional tutorial material is available at https://www.magicsplat.com/blog/tags/cffi/ and the samples in https://github.com/apnadkarni/tcl-cffi/tree/main/examples.

Source distributions and binary packages for some platforms can be downloaded from https://sourceforge.net/projects/magicsplat/files/cffi.

Building

To build the package from the source, see BUILD.md in the repository or source distribution.

About the package

Major features of the package are

  • Implicit conversions of numerics, strings, structs and arrays
  • Safety mechanisms for pointers
  • Encoding of string values passed and returned from C functions
  • Exception generation based on C function return values
  • Proc-like argument processing with defaults, error messages etc.
  • Utilities for managing memory and conversion to native formats
  • Extensible type aliases and enums
  • Introspection

Limitations in the current version include

  • No support for asynchronous callbacks

Version history

See the Change log.

Source: README.md, updated 2024-12-01