diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-17 13:49:20 +0200 |
---|---|---|
committer | Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> | 2021-06-17 22:53:27 +0100 |
commit | f65fff4d5e3a33e83c633eb20fd367e349f3dc92 (patch) | |
tree | 66e3fb6afc69738b28bcaaf908a09c13143615e7 /pyGHDL/libghdl/_types.py | |
parent | 56f8ca47465a7cc052e80c0ed4bab6fc55eeacba (diff) | |
download | ghdl-f65fff4d5e3a33e83c633eb20fd367e349f3dc92.tar.gz ghdl-f65fff4d5e3a33e83c633eb20fd367e349f3dc92.tar.bz2 ghdl-f65fff4d5e3a33e83c633eb20fd367e349f3dc92.zip |
Using a decorator to bind libghdl to Python.
Diffstat (limited to 'pyGHDL/libghdl/_types.py')
-rw-r--r-- | pyGHDL/libghdl/_types.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pyGHDL/libghdl/_types.py b/pyGHDL/libghdl/_types.py index b1e6410fe..132dbfab9 100644 --- a/pyGHDL/libghdl/_types.py +++ b/pyGHDL/libghdl/_types.py @@ -30,7 +30,7 @@ # # SPDX-License-Identifier: GPL-2.0-or-later # ============================================================================ - +from ctypes import c_int32 from typing import TypeVar __all__ = [ @@ -39,13 +39,21 @@ __all__ = [ "NameId", "SourceFileEntry", "Iir", - "IirKind", + "IirKind" ] ErrorIndex = TypeVar("ErrorIndex", bound=int) MessageIdWarnings = TypeVar("MessageIdWarnings", bound=int) NameId = TypeVar("NameId", bound=int) + SourceFileEntry = TypeVar("SourceFileEntry", bound=int) +Location_Type = TypeVar("Location_Type", bound=c_int32) Iir = TypeVar("Iir", bound=int) IirKind = TypeVar("IirKind", bound=int) + +Iir_Design_File = TypeVar("Iir_Design_File", bound=int) +Iir_Design_Unit = TypeVar("Iir_Design_Unit", bound=int) +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("Iir_Enumeration_Type_Definition", bound=c_int32) |