aboutsummaryrefslogtreecommitdiffstats
path: root/python/libghdl/thin/errorout_memory.py
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2020-12-27 22:10:38 +0100
committerumarcor <unai.martinezcorral@ehu.eus>2020-12-27 23:13:21 +0100
commitbf74a0983c2d534e217e7312ab559ca8929ff8a2 (patch)
treefb630d5b83afc2f112996ebb5f1eac44de868132 /python/libghdl/thin/errorout_memory.py
parent340fc792bba2ffdb4f930bc427a39ea3a1b659b2 (diff)
downloadghdl-bf74a0983c2d534e217e7312ab559ca8929ff8a2.tar.gz
ghdl-bf74a0983c2d534e217e7312ab559ca8929ff8a2.tar.bz2
ghdl-bf74a0983c2d534e217e7312ab559ca8929ff8a2.zip
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'.
Diffstat (limited to 'python/libghdl/thin/errorout_memory.py')
-rw-r--r--python/libghdl/thin/errorout_memory.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/python/libghdl/thin/errorout_memory.py b/python/libghdl/thin/errorout_memory.py
deleted file mode 100644
index f236f1075..000000000
--- a/python/libghdl/thin/errorout_memory.py
+++ /dev/null
@@ -1,34 +0,0 @@
-from libghdl import libghdl
-from ctypes import c_int8, c_int32, c_char_p, Structure
-
-
-class Error_Message(Structure):
- _fields_ = [
- ("id", c_int8),
- ("group", c_int8),
- ("file", c_int32),
- ("line", c_int32),
- ("offset", c_int32),
- ("length", c_int32),
- ]
-
-
-# Values for group:
-Msg_Single = 0
-Msg_Main = 1
-Msg_Related = 2
-Msg_Last = 3
-
-Install_Handler = libghdl.errorout__memory__install_handler
-
-Get_Nbr_Messages = libghdl.errorout__memory__get_nbr_messages
-
-Get_Error_Record = libghdl.errorout__memory__get_error_record
-Get_Error_Record.argstypes = [c_int32]
-Get_Error_Record.restype = Error_Message
-
-Get_Error_Message = libghdl.errorout__memory__get_error_message_addr
-Get_Error_Message.argstype = [c_int32]
-Get_Error_Message.restype = c_char_p
-
-Clear_Errors = libghdl.errorout__memory__clear_errors