From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63432 invoked by alias); 13 Aug 2019 11:31:20 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 63200 invoked by uid 9795); 13 Aug 2019 11:31:20 -0000 Date: Tue, 13 Aug 2019 11:31:00 -0000 Message-ID: <20190813113120.63193.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jon TURNEY To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] fenv: Update makedocbook for eae68bfc X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: b2990cae9e94ccf7f447f961fc9b6e1d7da66235 X-Git-Newrev: 8922b85d6bb5072441468ea24e764a825b9e1d9f X-SW-Source: 2019-q3/txt/msg00024.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8922b85d6bb5072441468ea24e764a825b9e1d9f commit 8922b85d6bb5072441468ea24e764a825b9e1d9f Author: Jon Turney 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()