Graphviz 13.0.0~dev.20250419.1008
Loading...
Searching...
No Matches
tcl-compat.h File Reference

Definitions to enable compatibility across Tcl 8 → Tcl 9. More...

#include <limits.h>
#include <tcl.h>
Include dependency graph for tcl-compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Tcl_GetSizeIntFromObj   Tcl_GetIntFromObj
 
#define TCL_SIZE_MAX   INT_MAX
 
#define TCL_SIZE_MODIFIER   ""
 
#define Tcl_Size   int
 

Detailed Description

Tcl 9 contained multiple breaking changes to the API. To allow compilation under either Tcl 8 or Tcl 9, various shims are needed. • https://core.tcl-lang.org/tcl/wiki?name=Migrating+C+extensions+to+Tcl+9https://wiki.tcl-lang.org/page/Porting+extensions+to+Tcl+9

Definition in file tcl-compat.h.

Macro Definition Documentation

◆ Tcl_GetSizeIntFromObj

#define Tcl_GetSizeIntFromObj   Tcl_GetIntFromObj

Definition at line 17 of file tcl-compat.h.

◆ Tcl_Size

#define Tcl_Size   int

size type for Tcl 8

https://core.tcl-lang.org/tcl/wiki?name=Migrating+C+extensions+to+Tcl+9 says:

"Tcl_Size" itself doesn't need to be provided as long as you update the extension to the latest tclconfig release. TEA (latest tcl.m4/rules.vc files) takes care of providing an appropriate preprocessor #define for Tcl_Size.

but we assume this has not happened.

Definition at line 33 of file tcl-compat.h.

◆ TCL_SIZE_MAX

#define TCL_SIZE_MAX   INT_MAX

Definition at line 18 of file tcl-compat.h.

◆ TCL_SIZE_MODIFIER

#define TCL_SIZE_MODIFIER   ""

Definition at line 19 of file tcl-compat.h.