4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-03 13:35:46 +08:00

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.
This commit is contained in:
Jon Turney 2019-08-12 19:27:10 +01:00 committed by Ken Brown
parent bbee9557b4
commit a577c601e7

View File

@ -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()