aboutsummaryrefslogtreecommitdiff
path: root/newlib/doc
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2019-08-12 19:27:10 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2019-08-13 12:29:31 +0100
commit8922b85d6bb5072441468ea24e764a825b9e1d9f (patch)
treee54ebe78e66ad88d96b260e9a118c453c559c93c /newlib/doc
parentb2990cae9e94ccf7f447f961fc9b6e1d7da66235 (diff)
downloadnewlib-8922b85d6bb5072441468ea24e764a825b9e1d9f.zip
newlib-8922b85d6bb5072441468ea24e764a825b9e1d9f.tar.gz
newlib-8922b85d6bb5072441468ea24e764a825b9e1d9f.tar.bz2
fenv: Update makedocbook for eae68bfc
Teach makedocbook how to handle some new things seen in the makedoc markup since eae68bfc: - 'link with' lines appearing in SYNOPSIS sections Also, don't raise a NoneType exception when there's something we don't know how to handle in a SYNOPSIS section, just exit.
Diffstat (limited to 'newlib/doc')
-rwxr-xr-xnewlib/doc/makedocbook.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/doc/makedocbook.py b/newlib/doc/makedocbook.py
index cf48c34..9725534 100755
--- a/newlib/doc/makedocbook.py
+++ b/newlib/doc/makedocbook.py
@@ -297,6 +297,8 @@ def synopsis(c, t):
# preprocessor # directives, structs, comments in square brackets
funcsynopsisinfo = lxml.etree.SubElement(funcsynopsis, 'funcsynopsisinfo')
funcsynopsisinfo.text = l.strip() + '\n'
+ elif re.match('[Ll]ink with', l):
+ pass
else:
s = s + l
@@ -312,7 +314,7 @@ def synopsis(c, t):
if s.strip():
print("surplus synopsis '%s'" % s, file=sys.stderr)
- raise
+ exit(1)
def synopsis_for_prototype(funcsynopsis, s):
s = s.strip()