aboutsummaryrefslogtreecommitdiffstats
path: root/src/name_table.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-10-05 20:42:22 +0200
committerTristan Gingold <tgingold@free.fr>2017-10-05 20:42:22 +0200
commitda6dd57e9e5ee865cbd0cc9246eebcad957adae6 (patch)
tree7637b8857014b59dc65ca8a3ec55e5cfd01af17b /src/name_table.ads
parentf3927d7bcc1540f8ea194b04b302260b03112de6 (diff)
downloadghdl-da6dd57e9e5ee865cbd0cc9246eebcad957adae6.tar.gz
ghdl-da6dd57e9e5ee865cbd0cc9246eebcad957adae6.tar.bz2
ghdl-da6dd57e9e5ee865cbd0cc9246eebcad957adae6.zip
python binding: add interfaces.
Diffstat (limited to 'src/name_table.ads')
-rw-r--r--src/name_table.ads4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/name_table.ads b/src/name_table.ads
index 16bfc2bcd..53aedc6dc 100644
--- a/src/name_table.ads
+++ b/src/name_table.ads
@@ -39,6 +39,10 @@ package Name_Table is
-- backslashes are simplified.
function Get_Identifier (Str: String) return Name_Id;
+ -- Likewise, but with a C compatible interface.
+ function Get_Identifier_With_Len (Str : Thin_String_Ptr; Len : Natural)
+ return Name_Id;
+
-- Get the string associed to a name. The first bound is 1.
-- If the name is a character, then single quote are added.
function Image (Id: Name_Id) return String;