From b0f3a909b0ee15b57b6999706fe1327f97a48a6c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 5 Nov 2021 07:33:03 +0100 Subject: scripts/pnodes.py: add a comment --- scripts/pnodes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/pnodes.py b/scripts/pnodes.py index f260c4b1a..ec00a54ac 100755 --- a/scripts/pnodes.py +++ b/scripts/pnodes.py @@ -241,6 +241,9 @@ def read_kinds(filename): # Read functions def read_methods(filename): lr = linereader(filename) + # Note: this is a list so that the output is deterministic. + # Duplicates are not detected, but they will be by the Ada compiler. + # TODO: use an ordered dict ? funcs = [] pat_field = re.compile(r" -- Field: ([\w,]+)( \w+)?( \(\w+\))?\n") pat_conv = re.compile(r"^ \((\w+)\)$") -- cgit v1.2.3