aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-05-14 18:26:18 +0200
committerTristan Gingold <tgingold@free.fr>2019-05-14 18:26:18 +0200
commit43d0db7f5a91f7c936faedc23afafeca27c6058d (patch)
tree3ad67169c6d5ca223291c3fc8dcb277538ce3397
parent002baec84a46ad5926d75c664f2e8b4135e31d99 (diff)
downloadghdl-43d0db7f5a91f7c936faedc23afafeca27c6058d.tar.gz
ghdl-43d0db7f5a91f7c936faedc23afafeca27c6058d.tar.bz2
ghdl-43d0db7f5a91f7c936faedc23afafeca27c6058d.zip
python: adjust after renaming.
-rw-r--r--src/vhdl/python/libghdl/thin.py20
-rwxr-xr-xsrc/vhdl/python/pnodespy.py2
2 files changed, 11 insertions, 11 deletions
diff --git a/src/vhdl/python/libghdl/thin.py b/src/vhdl/python/libghdl/thin.py
index d8d507eae..5ff197175 100644
--- a/src/vhdl/python/libghdl/thin.py
+++ b/src/vhdl/python/libghdl/thin.py
@@ -49,40 +49,40 @@ class Lists:
("chunk_idx", c_int32),
("remain", c_int32)]
- Iterate = libghdl.lists__iterate
+ Iterate = libghdl.vhdl__lists__iterate
Iterate.argstype = [List_Type]
Iterate.restype = Iterator
- Is_Valid = libghdl.lists__is_valid
+ Is_Valid = libghdl.vhdl__lists__is_valid
Is_Valid.argstype = [POINTER(Iterator)]
Is_Valid.restype = c_bool
- Next = libghdl.lists__next
+ Next = libghdl.vhdl__lists__next
Next.argstype = [POINTER(Iterator)]
Next.restype = None
- Get_Element = libghdl.lists__get_element
+ Get_Element = libghdl.vhdl__lists__get_element
Get_Element.argstype = [POINTER(Iterator)]
Get_Element.restype = c_int32
- Get_Nbr_Elements = libghdl.lists__get_nbr_elements
+ Get_Nbr_Elements = libghdl.vhdl__lists__get_nbr_elements
Get_Nbr_Elements.argtype = [List_Type]
Get_Nbr_Elements.restype = c_int32
- Create_Iir_List = libghdl.lists__create_list
+ Create_Iir_List = libghdl.vhdl__lists__create_list
- Destroy_Iir_List = libghdl.lists__destroy_list
+ Destroy_Iir_List = libghdl.vhdl__lists__destroy_list
class Flists:
Flist_Type = c_int32
Ffirst = 0
- Flast = libghdl.flists__flast
+ Flast = libghdl.vhdl__flists__flast
- Length = libghdl.flists__length
+ Length = libghdl.vhdl__flists__length
- Get_Nth_Element = libghdl.flists__get_nth_element
+ Get_Nth_Element = libghdl.vhdl__flists__get_nth_element
# Files
diff --git a/src/vhdl/python/pnodespy.py b/src/vhdl/python/pnodespy.py
index 54a025e1f..822680970 100755
--- a/src/vhdl/python/pnodespy.py
+++ b/src/vhdl/python/pnodespy.py
@@ -211,7 +211,7 @@ def do_libghdl_names():
print('class Name:')
for n, v in res:
# Avoid clash with Python names
- if n in ['False', 'True']:
+ if n in ['False', 'True', 'None']:
n = 'N' + n
print(' {0} = {1}'.format(n, v))