aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/_types.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-19 12:14:41 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-19 15:25:07 +0200
commitab45b7d09084481b4007ecfec102c09642a5b14c (patch)
treec9fab5c20fdf1b5766a70ba13a9d98c18ba630ee /pyGHDL/libghdl/_types.py
parentf683303868a941b02535aab4a989b2f916624a26 (diff)
downloadghdl-ab45b7d09084481b4007ecfec102c09642a5b14c.tar.gz
ghdl-ab45b7d09084481b4007ecfec102c09642a5b14c.tar.bz2
ghdl-ab45b7d09084481b4007ecfec102c09642a5b14c.zip
Changes TypeVars to use CDLL types like c_int32.
Diffstat (limited to 'pyGHDL/libghdl/_types.py')
-rw-r--r--pyGHDL/libghdl/_types.py14
1 files changed, 7 insertions, 7 deletions
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(