]> git.ipfire.org Git - thirdparty/libvirt.git/commit
scripts: fix API parsing of *** pointers
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 20 Sep 2021 16:24:45 +0000 (17:24 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 21 Sep 2021 15:22:30 +0000 (16:22 +0100)
commit81b63c3d78ce2e275558811f6bd10de6c90c8726
tree1a31a3f119cdc91ea65f50b1bc01b71fc0969784
parent675c222a5861836d41a416e2c6e91b1af6a9e50b
scripts: fix API parsing of *** pointers

The currrent generated API contains *** pointer types with bogus
whitespace in the middle:

  <arg name='keys' type='char ** *' info='pointer to a variable to store authorized keys'/>

because the tokenizer only tries to merge 2 distinct '*' together.
This refactors the code to merge an arbitrary number, resulting
in

  <arg name='keys' type='char ***' info='pointer to a variable to store authorized keys'/>

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
scripts/apibuild.py