From af81ad935b90f719b56454cc01e8856ed970995a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 5 Feb 2025 14:49:00 +0100 Subject: [PATCH] edge case fix --- tools/extract_constids.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/extract_constids.py b/tools/extract_constids.py index ddd7cf9..9c89e85 100644 --- a/tools/extract_constids.py +++ b/tools/extract_constids.py @@ -32,6 +32,8 @@ def parse_line(item,fout): elif line[0] in ["input", "output" ,"inout"]: items = " ".join(line[1:]).strip().split(",") for it in items: + if "=" in it: + it = it[:it.find("=")].strip() name = it.split(" ")[-1].strip() if len(name)>0: export_name(name, fout)