[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-cvs
Subject:    CVS: cvs.openbsd.org: src
From:       Ingo Schwarze <schwarze () cvs ! openbsd ! org>
Date:       2022-04-30 18:46:16
Message-ID: ff60769bae1f4f2a () cvs ! openbsd ! org
[Download RAW message or body]

CVSROOT:	/cvs
Module name:	src
Changes by:	schwarze@cvs.openbsd.org	2022/04/30 12:46:16

Modified files:
	usr.bin/mandoc : roff.c 
	regress/usr.bin/mandoc/roff/ce: Makefile 
	regress/usr.bin/mandoc/tbl/macro: Makefile nested.out_lint 
Added files:
	regress/usr.bin/mandoc/roff/ce: break.in break.out_ascii 
	regress/usr.bin/mandoc/tbl/macro: req.in req.out_ascii 
	                                  req.out_lint 

Log message:
Provide a new function roff_req_or_macro() to parse and handle a request
or macro, including context-dependent error handling inside tbl(7) code
and inside .ce/.rj blocks.  Use it both in the top level roff(7) parser
and inside conditional blocks.

This fixes an assertion failure triggered by ".if 1 .ce" inside tbl(7)
code, found by tb@ using afl(1).

As a side benefit for readability, only one place remains in the
code that calls the main handler functions for the various roff(7)
requests.  This patch also improves column numbers in some error
messages and various comments.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic