summaryrefslogtreecommitdiff
path: root/doc/apibuild.py
diff options
context:
space:
mode:
authorMartin Vidner <martin@vidner.net>2020-05-31 18:46:21 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2020-06-24 19:55:52 +0200
commit43a8836cdef344018d9a2bc3caa0f8a3a666efbd (patch)
tree07070a5ce67956d5d15aafb28628fde96f5e5421 /doc/apibuild.py
parent9f42f6baaa91b6461ddfce345c174ea5f1ee73c3 (diff)
downloadlibxml2-43a8836cdef344018d9a2bc3caa0f8a3a666efbd.tar.gz
Fix rebuilding docs, by hiding __attribute__((...)) behind a macro.
When enabled via `./configure --enable-rebuild-docs`, `make -C doc libxml2-api.xml` will invoke apibuild.py to rebuild libxml2-api.xml from the sources. But the code added in 9fa3200cb366c726f7c8ef234282603bb9e8816d made it error out with ``` Parsing ../parser.c Parse Error: parsing type : expecting a name ('Got token ', ('sep', '(')) ('Last token: ', ('sep', '(')) ('Token queue: ', [('name', 'destructor'), ('sep', ')'), ('sep', ')')]) ('Line 14689 end: ', '') ```
Diffstat (limited to 'doc/apibuild.py')
-rwxr-xr-xdoc/apibuild.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/apibuild.py b/doc/apibuild.py
index bf90e0ad..18e8a9d3 100755
--- a/doc/apibuild.py
+++ b/doc/apibuild.py
@@ -74,6 +74,7 @@ ignored_words = {
"__declspec": (3, "Windows keyword"),
"__stdcall": (0, "Windows keyword"),
"ATTRIBUTE_UNUSED": (0, "macro keyword"),
+ "ATTRIBUTE_DESTRUCTOR": (0, "macro keyword"),
"LIBEXSLT_PUBLIC": (0, "macro keyword"),
"X_IN_Y": (5, "macro function builder"),
"ATTRIBUTE_ALLOC_SIZE": (3, "macro for gcc checking extension"),