diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-06-04 18:25:53 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-06-04 18:25:53 +0200 |
commit | 25f61f81547d51ecc3983eb5779813fb94ca90ef (patch) | |
tree | 0e23044abd1a51ecf41c362299aebd1b3d6e1525 /src/vhdl/python/libghdl/thin | |
parent | f653b8b1328f2ec6d13f221ee6f9817091de91f6 (diff) | |
download | ghdl-25f61f81547d51ecc3983eb5779813fb94ca90ef.tar.gz ghdl-25f61f81547d51ecc3983eb5779813fb94ca90ef.tar.bz2 ghdl-25f61f81547d51ecc3983eb5779813fb94ca90ef.zip |
vhdl: adjust formatters and add python bindings.
Diffstat (limited to 'src/vhdl/python/libghdl/thin')
-rw-r--r-- | src/vhdl/python/libghdl/thin/vhdl/formatters.py | 14 | ||||
-rw-r--r-- | src/vhdl/python/libghdl/thin/vhdl/sem.py | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/vhdl/python/libghdl/thin/vhdl/formatters.py b/src/vhdl/python/libghdl/thin/vhdl/formatters.py new file mode 100644 index 000000000..9c8bf9afb --- /dev/null +++ b/src/vhdl/python/libghdl/thin/vhdl/formatters.py @@ -0,0 +1,14 @@ +from libghdl import libghdl +from ctypes import c_int32, c_char_p + +Indent_String = libghdl.vhdl__formatters__indent_string + +Allocate_Handle = libghdl.vhdl__formatters__allocate_handle + +Get_Length = libghdl.vhdl__formatters__get_length +Get_Length.restype = c_int32 + +Get_C_String = libghdl.vhdl__formatters__get_c_string +Get_C_String.restype = c_char_p + +Free_Handle = libghdl.vhdl__formatters__free_handle diff --git a/src/vhdl/python/libghdl/thin/vhdl/sem.py b/src/vhdl/python/libghdl/thin/vhdl/sem.py new file mode 100644 index 000000000..df82435da --- /dev/null +++ b/src/vhdl/python/libghdl/thin/vhdl/sem.py @@ -0,0 +1,3 @@ +from libghdl import libghdl + +Semantic = libghdl.vhdl__sem__semantic |