From bf74a0983c2d534e217e7312ab559ca8929ff8a2 Mon Sep 17 00:00:00 2001 From: umarcor Date: Sun, 27 Dec 2020 22:10:38 +0100 Subject: rework 'python', rename to 'pyGHDL' * Rename 'python' to 'pyGHDL'. * Let 'thin' be 'libghdl'. * Move move 'pyutils.py' from 'python/libghdl/vhdl' to a separate package ('pyGHDL/libghdl/utils/'). * Update 'vhdl_langserver' accordingly. * Rename 'vhdl_langserver' to 'lsp'. * Move 'ghdl-ls' to 'pyGHDL/cli'. --- pyGHDL/libghdl/errorout.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pyGHDL/libghdl/errorout.py (limited to 'pyGHDL/libghdl/errorout.py') diff --git a/pyGHDL/libghdl/errorout.py b/pyGHDL/libghdl/errorout.py new file mode 100644 index 000000000..af0da5fc6 --- /dev/null +++ b/pyGHDL/libghdl/errorout.py @@ -0,0 +1,38 @@ +from libghdl import libghdl + +Enable_Warning = libghdl.errorout__enable_warning + + +class Msgid: + Msgid_Note = 0 + Warnid_Library = 1 + Warnid_Deprecated_Option = 2 + Warnid_Unexpected_Option = 3 + Warnid_Missing_Xref = 4 + Warnid_Default_Binding = 5 + Warnid_Binding = 6 + Warnid_Port = 7 + Warnid_Reserved_Word = 8 + Warnid_Pragma = 9 + Warnid_Nested_Comment = 10 + Warnid_Directive = 11 + Warnid_Parenthesis = 12 + Warnid_Vital_Generic = 13 + Warnid_Delayed_Checks = 14 + Warnid_Body = 15 + Warnid_Specs = 16 + Warnid_Universal = 17 + Warnid_Port_Bounds = 18 + Warnid_Runtime_Error = 19 + Warnid_Delta_Cycle = 20 + Warnid_Shared = 21 + Warnid_Hide = 22 + Warnid_Unused = 23 + Warnid_Others = 24 + Warnid_Pure = 25 + Warnid_Analyze_Assert = 26 + Warnid_Attribute = 27 + Warnid_Static = 28 + Msgid_Warning = 29 + Msgid_Error = 30 + Msgid_Fatal = 31 -- cgit v1.2.3 From 1c38bc3933ba4e469811c5898b9aeae896e23afc Mon Sep 17 00:00:00 2001 From: umarcor Date: Tue, 29 Dec 2020 02:40:13 +0100 Subject: pyGHDL/libghdl: fix absolute imports --- pyGHDL/libghdl/errorout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyGHDL/libghdl/errorout.py') diff --git a/pyGHDL/libghdl/errorout.py b/pyGHDL/libghdl/errorout.py index af0da5fc6..5819970b5 100644 --- a/pyGHDL/libghdl/errorout.py +++ b/pyGHDL/libghdl/errorout.py @@ -1,4 +1,4 @@ -from libghdl import libghdl +from pyGHDL.libghdl import libghdl Enable_Warning = libghdl.errorout__enable_warning -- cgit v1.2.3 From 59d35ab49e7ed598387f3a3c5a53138096893b3f Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 29 Dec 2020 09:43:02 +0100 Subject: Run xtools. --- pyGHDL/libghdl/errorout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyGHDL/libghdl/errorout.py') diff --git a/pyGHDL/libghdl/errorout.py b/pyGHDL/libghdl/errorout.py index 5819970b5..af0da5fc6 100644 --- a/pyGHDL/libghdl/errorout.py +++ b/pyGHDL/libghdl/errorout.py @@ -1,4 +1,4 @@ -from pyGHDL.libghdl import libghdl +from libghdl import libghdl Enable_Warning = libghdl.errorout__enable_warning -- cgit v1.2.3 From 7e787e9ba5b4308ec1975760636c4f23adb1e762 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 29 Dec 2020 10:16:22 +0100 Subject: Manually fixed import statements after running xtools. --- pyGHDL/libghdl/errorout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyGHDL/libghdl/errorout.py') diff --git a/pyGHDL/libghdl/errorout.py b/pyGHDL/libghdl/errorout.py index af0da5fc6..5819970b5 100644 --- a/pyGHDL/libghdl/errorout.py +++ b/pyGHDL/libghdl/errorout.py @@ -1,4 +1,4 @@ -from libghdl import libghdl +from pyGHDL.libghdl import libghdl Enable_Warning = libghdl.errorout__enable_warning -- cgit v1.2.3