public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] fenv: Update makedocbook for eae68bfc
@ 2019-08-13 11:31 Jon TURNEY
  0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2019-08-13 11:31 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8922b85d6bb5072441468ea24e764a825b9e1d9f

commit 8922b85d6bb5072441468ea24e764a825b9e1d9f
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Mon Aug 12 19:27:10 2019 +0100

    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.

Diff:
---
 newlib/doc/makedocbook.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-13 11:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-13 11:31 [newlib-cygwin] fenv: Update makedocbook for eae68bfc Jon TURNEY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).