aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/python
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-12-14 19:17:34 +0100
committerTristan Gingold <tgingold@free.fr>2018-12-14 19:17:34 +0100
commitfe1d817d034d969e012faaa661238ff1587aed25 (patch)
treea755428e51a8546b9c6e73e847c21eaac85b87f2 /src/vhdl/python
parente81ab8a4d7dbfb8891d9c3263a816a30d80bde89 (diff)
downloadghdl-fe1d817d034d969e012faaa661238ff1587aed25.tar.gz
ghdl-fe1d817d034d969e012faaa661238ff1587aed25.tar.bz2
ghdl-fe1d817d034d969e012faaa661238ff1587aed25.zip
thinutils: create name_image.
Diffstat (limited to 'src/vhdl/python')
-rw-r--r--src/vhdl/python/libghdl/thinutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/python/libghdl/thinutils.py b/src/vhdl/python/libghdl/thinutils.py
index 1e8ee417d..8fc01d434 100644
--- a/src/vhdl/python/libghdl/thinutils.py
+++ b/src/vhdl/python/libghdl/thinutils.py
@@ -9,6 +9,8 @@ from libghdl.nodes_meta import (Attr, types)
Null_Iir = 0
Null_Iir_List = 0
+def name_image(nameid):
+ return thin.Get_Name_Ptr(nameid).decode('utf-8')
def _build_enum_image(cls):
d = [e for e in dir(cls) if e[0] != '_']