diff options
author | David Robillard <d@drobilla.net> | 2022-11-17 11:37:45 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-17 12:09:45 -0500 |
commit | 6119ebd8459383808024d93cfb3a3882eb3b9ab4 (patch) | |
tree | 9756cf7df6e1b69b3876bfc57fe1f05b7b487724 /scripts | |
parent | 843bdfb552544f96acb3e4624c1d551c85bfa759 (diff) | |
download | zix-6119ebd8459383808024d93cfb3a3882eb3b9ab4.tar.gz zix-6119ebd8459383808024d93cfb3a3882eb3b9ab4.tar.bz2 zix-6119ebd8459383808024d93cfb3a3882eb3b9ab4.zip |
Show the size of array members in the documentation
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dox_to_sphinx.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/dox_to_sphinx.py b/scripts/dox_to_sphinx.py index 49fbdfd..8282646 100755 --- a/scripts/dox_to_sphinx.py +++ b/scripts/dox_to_sphinx.py @@ -500,6 +500,8 @@ def read_definition_doc(index, lang, root): elif kind == "variable": record["type"] = plain_text(member.find("type")) record["name"] = plain_text(member.find("name")) + record["args"] = plain_text(member.find("argsstring")) + record["definition"] = plain_text(member.find("definition")) @@ -523,8 +525,12 @@ def declaration_string(record): elif kind == "typedef": result += record["definition"] elif kind == "variable": - if "type" in record and "name" in record: - result += "%s %s" % (record["type"], local_name(record["name"])) + if "type" in record and "name" in record and "args" in record: + result += "%s %s%s" % ( + record["type"], + local_name(record["name"]), + record["args"], + ) else: result += record["definition"] elif "type" in record: |