From ab45b7d09084481b4007ecfec102c09642a5b14c Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sat, 19 Jun 2021 12:14:41 +0200 Subject: Changes TypeVars to use CDLL types like c_int32. --- pyGHDL/libghdl/_types.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pyGHDL/libghdl/_types.py') diff --git a/pyGHDL/libghdl/_types.py b/pyGHDL/libghdl/_types.py index 31584133a..1db333f05 100644 --- a/pyGHDL/libghdl/_types.py +++ b/pyGHDL/libghdl/_types.py @@ -65,11 +65,11 @@ Boolean = TypeVar("Boolean", bound=c_bool) Int32 = TypeVar("Int32", bound=c_int32) Int64 = TypeVar("Int64", bound=c_int64) -Fp64 = TypeVar("Fp64", bound=float) +Fp64 = TypeVar("Fp64", bound=c_double) -ErrorIndex = TypeVar("ErrorIndex", bound=int) -MessageIdWarnings = TypeVar("MessageIdWarnings", bound=int) -NameId = TypeVar("NameId", bound=int) +ErrorIndex = TypeVar("ErrorIndex", bound=c_int32) +MessageIdWarnings = TypeVar("MessageIdWarnings", bound=c_int32) +NameId = TypeVar("NameId", bound=c_int32) String8Id = TypeVar("String8Id", bound=c_uint32) FileChecksumId = TypeVar("FileChecksumId", bound=c_uint32) @@ -79,14 +79,14 @@ SourceFileEntry = TypeVar("SourceFileEntry", bound=c_uint32) SourcePtr = TypeVar("SourcePtr", bound=c_int32) LocationType = TypeVar("LocationType", bound=c_uint32) -Iir = TypeVar("Iir", bound=int) +Iir = TypeVar("Iir", bound=c_int32) IirKind = TypeVar("IirKind", bound=c_int32) PSLNode = TypeVar("PSLNode", bound=c_int32) PSLNFA = TypeVar("PSLNFA", bound=c_int32) -Iir_Design_File = TypeVar("Iir_Design_File", bound=int) -Iir_Design_Unit = TypeVar("Iir_Design_Unit", bound=int) +Iir_Design_File = TypeVar("Iir_Design_File", bound=c_int32) +Iir_Design_Unit = TypeVar("Iir_Design_Unit", bound=c_int32) Iir_Library_Declaration = TypeVar("Iir_Library_Declaration", bound=c_int32) Iir_Package_Declaration = TypeVar("Iir_Package_Declaration", bound=c_int32) Iir_Enumeration_Type_Definition = TypeVar( -- cgit v1.2.3