sync code with last improvements from OpenBSD

This commit is contained in:
purplerain 2023-11-11 01:29:48 +00:00
parent 5903cbe575
commit 62d64fa864
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
841 changed files with 83929 additions and 40755 deletions

View file

@ -0,0 +1,10 @@
# $OpenBSD: Makefile,v 1.1 2023/10/24 20:30:49 schwarze Exp $
REGRESS_TARGETS = basic
LINT_TARGETS = basic
.include <bsd.regress.mk>
# temporary hack while working towards an update of the groff port
MANDOC = mandoc -O indent=5
GROFF = /co/groff/build/test-groff ${GOPTS} -d MF=R ${MOPTS} -Wall -P-c

View file

@ -0,0 +1,46 @@
.\" $OpenBSD: basic.in,v 1.1 2023/10/24 20:30:49 schwarze Exp $
.TH MR-BASIC 1 "October 24, 2023" OpenBSD
.SH NAME
MR-basic \- manual page cross references
.SH DESCRIPTION
empty:
.MR
prints empty name and parentheses
.PP
single argument:
.MR name
prints empty parentheses
.PP
two arguments:
.MR test 1
normal use
.PP
three arguments:
.MR test 1 suffix
with suffix
.PP
four arguments:
.MR test 1 suffix excess
warning
.PP
five arguments:
.MR test 1 suffix too many
warning
.PP
after setting
.ft B
bold
font:
.MR test 1 suffix
not bold
.PP
in bold next-line scope:
.B
.MR test 1 suffix
not bold
.TP 5n
first tag
first body
.TP
.MR test 1 tag
test body

View file

@ -0,0 +1,29 @@
MR-BASIC(1) General Commands Manual MR-BASIC(1)
NNAAMMEE
MR-basic - manual page cross references
DDEESSCCRRIIPPTTIIOONN
empty: () prints empty name and parentheses
single argument: name() prints empty parentheses
two arguments: test(1) normal use
three arguments: test(1)suffix with suffix
four arguments: test(1)suffix warning
five arguments: test(1)suffix warning
after setting bboolldd ffoonntt:: test(1)suffix not bold
in bold next-line scope: test(1)suffix not bold
first tag
first body
test(1)tag
test body
OpenBSD October 24, 2023 MR-BASIC(1)

View file

@ -0,0 +1,5 @@
mandoc: basic.in:38:2: WARNING: line scope broken: MR breaks B
mandoc: basic.in:7:2: ERROR: missing manual name, using "": MR
mandoc: basic.in:11:2: WARNING: missing section argument: MR name
mandoc: basic.in:23:19: ERROR: skipping excess arguments: MR ... excess
mandoc: basic.in:27:19: ERROR: skipping excess arguments: MR ... too

View file

@ -1,6 +1,6 @@
# $OpenBSD: Makefile,v 1.20 2022/04/27 17:04:15 schwarze Exp $
# $OpenBSD: Makefile,v 1.21 2023/10/24 20:30:49 schwarze Exp $
SUBDIR = AT B BI DT EX HP IP MT OP PD PP RS SH SS SY TH TP TS UC UR nf blank
SUBDIR = AT B BI DT EX HP IP MR MT OP PD PP RS SH SS SY TH TP TS UC UR nf blank
.include "../Makefile.sub"
.include <bsd.subdir.mk>

View file

@ -1,6 +1,7 @@
# $OpenBSD: Makefile,v 1.4 2014/07/06 19:08:57 schwarze Exp $
# $OpenBSD: Makefile,v 1.6 2023/10/22 16:54:19 schwarze Exp $
REGRESS_TARGETS = roff man mdoc
LINT_TARGETS = roff man mdoc
REGRESS_TARGETS = roff man mdoc esc infrec
LINT_TARGETS = roff man mdoc infrec
SKIP_GROFF = infrec
.include <bsd.regress.mk>

View file

@ -0,0 +1,8 @@
.\" $OpenBSD: esc.in,v 1.1 2023/10/21 17:28:01 schwarze Exp $
.TH ARGS-ESC 1 "October 21, 2023"
.SH NAME
args-esc - delayed escape sequence expansion in macro arguments
.SH DESCRIPTION
.ds inner content
.ds outer \\*[inner]
.B \\*[outer]

View file

@ -0,0 +1,9 @@
ARGS-ESC(1) General Commands Manual ARGS-ESC(1)
NNAAMMEE
args-esc - delayed escape sequence expansion in macro arguments
DDEESSCCRRIIPPTTIIOONN
ccoonntteenntt
OpenBSD October 21, 2023 ARGS-ESC(1)

View file

@ -0,0 +1,10 @@
.\" $OpenBSD: infrec.in,v 1.1 2023/10/22 16:54:19 schwarze Exp $
.TH ARGS-INFREC 1 "October 22, 2023"
.SH NAME
args-infrec - infinite recursion in macro argument expansion
.SH DESCRIPTION
.ds mys first word
.ds mys \\*[mys] another word
initial text
.RB prefix \\*[mys] postfix
final text

View file

@ -0,0 +1,9 @@
ARGS-INFREC(1) General Commands Manual ARGS-INFREC(1)
NNAAMMEE
args-infrec - infinite recursion in macro argument expansion
DDEESSCCRRIIPPTTIIOONN
initial text prefixpostfix final text
OpenBSD October 22, 2023 ARGS-INFREC(1)

View file

@ -0,0 +1 @@
mandoc: infrec.in:9:1: ERROR: input stack limit exceeded, infinite loop?

View file

@ -1,5 +1,5 @@
.\" $OpenBSD: w.in,v 1.4 2022/06/08 13:08:00 schwarze Exp $
.Dd $Mdocdate: June 8 2022 $
.\" $OpenBSD: w.in,v 1.5 2023/10/23 20:07:19 schwarze Exp $
.Dd $Mdocdate: October 23 2023 $
.Dt ESC-W 1
.Os
.Sh NAME
@ -13,6 +13,20 @@ character: \w'n'
blank: \w' '
.br
text: \w'text'
.br
special: \w'\(bu'
.br
numbered: \w'\N'100''
.br
Unicode: \w'\[u2013]'
.br
overstrike: \w'\o'ab''
.br
undefined: \w'\G'
.br
zero-width: \w'\fB\&\fP'
.br
skipchar: \w'a\zb\z\(buc'
.Ss Argument delimiters
unsupported \er: \w\rM\ru
.br

View file

@ -8,6 +8,13 @@ DDEESSCCRRIIPPTTIIOONN
character: 24
blank: 24
text: 96
special: 24
numbered: 24
Unicode: 24
overstrike: 24
undefined: 24
zero-width: 0
skipchar: 48
AArrgguummeenntt ddeelliimmiitteerrss
unsupported \r: 24u
@ -27,4 +34,4 @@ DDEESSCCRRIIPPTTIIOONN
overstrike: 24u
unterminated: 72
OpenBSD June 8, 2022 OpenBSD
OpenBSD October 23, 2023 OpenBSD

View file

@ -1,4 +1,5 @@
mandoc: w.in:17:20: UNSUPP: unsupported escape sequence: \r
mandoc: w.in:17:23: UNSUPP: unsupported escape sequence: \r
mandoc: w.in:23:16: WARNING: undefined escape, printing literally: \G
mandoc: w.in:51:15: ERROR: incomplete escape sequence: \w'foo
mandoc: w.in:25:15: WARNING: undefined escape, printing literally: \G
mandoc: w.in:31:20: UNSUPP: unsupported escape sequence: \r
mandoc: w.in:31:23: UNSUPP: unsupported escape sequence: \r
mandoc: w.in:37:16: WARNING: undefined escape, printing literally: \G
mandoc: w.in:65:15: ERROR: incomplete escape sequence: \w'foo