diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-02 03:47:08 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-02 03:47:08 +0000 |
commit | 3115104f4eeeff892c9b0b8c11ecaacf0960f527 (patch) | |
tree | c3e7c968ea48434a303d7f566d1004625abf834c /regress | |
parent | 6378c10bd3dfa31237a2c50f0038d144c1b7597c (diff) |
Implement the obsolete macros .En .Es .Fr .Ot for backward compatibility,
since this is hardly more complicated than explicitly ignoring them
as we did in the past. Of course, do not use them!
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Eo/Makefile | 6 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Eo/obsolete.in | 20 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Eo/obsolete.out_ascii | 14 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Eo/obsolete.out_lint | 6 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Fo/Makefile | 6 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Fo/obsolete.in | 12 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Fo/obsolete.out_ascii | 11 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Fo/obsolete.out_lint | 2 |
8 files changed, 73 insertions, 4 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Eo/Makefile b/regress/usr.bin/mandoc/mdoc/Eo/Makefile index 9483beafc90..caa50a0c9e1 100644 --- a/regress/usr.bin/mandoc/mdoc/Eo/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Eo/Makefile @@ -1,5 +1,7 @@ -# $OpenBSD: Makefile,v 1.1 2012/07/09 22:36:04 schwarze Exp $ +# $OpenBSD: Makefile,v 1.2 2014/07/02 03:47:07 schwarze Exp $ -REGRESS_TARGETS = empty +REGRESS_TARGETS = empty obsolete + +LINT_TARGETS = obsolete .include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/mdoc/Eo/obsolete.in b/regress/usr.bin/mandoc/mdoc/Eo/obsolete.in new file mode 100644 index 00000000000..fe0bb087f2d --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Eo/obsolete.in @@ -0,0 +1,20 @@ +.Dd July 2, 2014 +.Dt EO-OBSOLETE 1 +.Os OpenBSD +.Sh NAME +.Nm Eo-obsolete +.Nd obsolete enclosure macros +.Sh DESCRIPTION +.En no prior \&Es +.Pp +.Es << >> surplus +initial text +.En enclosed words with Fl flags +middle text +.En more enclosed words +final text +.Pp +.Es +initial text +.En after empty \&Es +final text diff --git a/regress/usr.bin/mandoc/mdoc/Eo/obsolete.out_ascii b/regress/usr.bin/mandoc/mdoc/Eo/obsolete.out_ascii new file mode 100644 index 00000000000..2dd5b76d86c --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Eo/obsolete.out_ascii @@ -0,0 +1,14 @@ +EO-OBSOLETE(1) OpenBSD Reference Manual EO-OBSOLETE(1) + +NNAAMMEE + EEoo--oobbssoolleettee - obsolete enclosure macros + +DDEESSCCRRIIPPTTIIOONN + no prior Es + + surplus initial text <<enclosed words with --ffllaaggss>> middle text <<more + enclosed words>> final text + + initial text after empty Es final text + +OpenBSD July 2, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Eo/obsolete.out_lint b/regress/usr.bin/mandoc/mdoc/Eo/obsolete.out_lint new file mode 100644 index 00000000000..02d585d7dbd --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Eo/obsolete.out_lint @@ -0,0 +1,6 @@ +mandoc: obsolete.in:8:2: WARNING: obsolete macro: En +mandoc: obsolete.in:10:5: WARNING: obsolete macro: Es +mandoc: obsolete.in:12:2: WARNING: obsolete macro: En +mandoc: obsolete.in:14:2: WARNING: obsolete macro: En +mandoc: obsolete.in:17:4: WARNING: obsolete macro: Es +mandoc: obsolete.in:19:2: WARNING: obsolete macro: En diff --git a/regress/usr.bin/mandoc/mdoc/Fo/Makefile b/regress/usr.bin/mandoc/mdoc/Fo/Makefile index 88adf0c6490..e64899c66be 100644 --- a/regress/usr.bin/mandoc/mdoc/Fo/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Fo/Makefile @@ -1,6 +1,8 @@ -# $OpenBSD: Makefile,v 1.7 2013/12/25 00:39:14 schwarze Exp $ +# $OpenBSD: Makefile,v 1.8 2014/07/02 03:47:07 schwarze Exp $ -REGRESS_TARGETS = basic section break noarg font eos +REGRESS_TARGETS = basic section break noarg font eos obsolete + +LINT_TARGETS = obsolete # groff does not handle .nr nS diff --git a/regress/usr.bin/mandoc/mdoc/Fo/obsolete.in b/regress/usr.bin/mandoc/mdoc/Fo/obsolete.in new file mode 100644 index 00000000000..4901cbd596a --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Fo/obsolete.in @@ -0,0 +1,12 @@ +.Dd July 2, 2014 +.Dt FO-OBSOLETE 1 +.Os OpenBSD +.Sh NAME +.Nm Fo-obsolete +.Nd obsolete function macros +.Sh DESCRIPTION +old function type +.Ot fortran +.Pp +function return value +.Fr value diff --git a/regress/usr.bin/mandoc/mdoc/Fo/obsolete.out_ascii b/regress/usr.bin/mandoc/mdoc/Fo/obsolete.out_ascii new file mode 100644 index 00000000000..a6254c3a796 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Fo/obsolete.out_ascii @@ -0,0 +1,11 @@ +FO-OBSOLETE(1) OpenBSD Reference Manual FO-OBSOLETE(1) + +NNAAMMEE + FFoo--oobbssoolleettee - obsolete function macros + +DDEESSCCRRIIPPTTIIOONN + old function type _f_o_r_t_r_a_n + + function return value _v_a_l_u_e + +OpenBSD July 2, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Fo/obsolete.out_lint b/regress/usr.bin/mandoc/mdoc/Fo/obsolete.out_lint new file mode 100644 index 00000000000..c1ad3d858d6 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Fo/obsolete.out_lint @@ -0,0 +1,2 @@ +mandoc: obsolete.in:9:2: WARNING: obsolete macro: Ot +mandoc: obsolete.in:12:2: WARNING: obsolete macro: Fr |