diff options
Diffstat (limited to 'pyGHDL')
-rw-r--r-- | pyGHDL/dom/NonStandard.py | 8 | ||||
-rw-r--r-- | pyGHDL/libghdl/flags.py | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/pyGHDL/dom/NonStandard.py b/pyGHDL/dom/NonStandard.py index 2066c190f..0a2ead728 100644 --- a/pyGHDL/dom/NonStandard.py +++ b/pyGHDL/dom/NonStandard.py @@ -66,8 +66,8 @@ from pyGHDL.libghdl import ( files_map_editor, ENCODING, ) -from pyGHDL.libghdl.flags import Flag_Gather_Comments, Flags, VhdlStandard -from pyGHDL.libghdl.vhdl import nodes, sem_lib, parse +from pyGHDL.libghdl.flags import Flag_Gather_Comments +from pyGHDL.libghdl.vhdl import nodes, sem_lib from pyGHDL.libghdl.vhdl.parse import Flag_Parse_Parenthesis from pyGHDL.dom import DOMException, Position from pyGHDL.dom._Utils import GetIirKindOfNode, CheckForErrors, GetNameOfNode, GetDocumentationOfNode @@ -151,13 +151,13 @@ class Document(VHDLModel_Document): # Parse input file t1 = time.perf_counter() - if vhdlVersion.IsAMS(): + if vhdlVersion.IsAMS: flags.AMS_Vhdl.value = True self.__ghdlFile = sem_lib.Load_File(self.__ghdlSourceFileEntry) CheckForErrors() - if vhdlVersion.IsAMS(): + if vhdlVersion.IsAMS: flags.AMS_Vhdl.value = False self.__ghdlProcessingTime = time.perf_counter() - t1 diff --git a/pyGHDL/libghdl/flags.py b/pyGHDL/libghdl/flags.py index 26d548cd5..580828d0a 100644 --- a/pyGHDL/libghdl/flags.py +++ b/pyGHDL/libghdl/flags.py @@ -33,6 +33,9 @@ # ============================================================================ from ctypes import c_bool, sizeof +from enum import unique, IntEnum + +from pyTooling.Decorators import export from pyGHDL.libghdl import libghdl |