@@@ much mess, mostly manpages
[mLib] / utils / control.3.in
similarity index 87%
rename from utils/control.3
rename to utils/control.3.in
index 65f31d6..8089258 100644 (file)
@@ -1,20 +1,34 @@
 .\" -*-nroff-*-
-.de VS
-.sp 1
-.RS
-.nf
-.ft B
-..
-.de VE
-.ft R
-.fi
-.RE
-.sp 1
-..
-.TH control 3 "23 April 2023" "Straylight/Edgeware" "mLib utilities library"
+.\"
+.\" Manual for control flow metaprogramming
+.\"
+.\" (c) 2023, 2024 Straylight/Edgeware
+.\"
 .
-.SH NAME
-control \- control structure metaprogramming
+.\"----- Licensing notice ---------------------------------------------------
+.\"
+.\" This file is part of the mLib utilities library.
+.\"
+.\" mLib is free software: you can redistribute it and/or modify it under
+.\" the terms of the GNU Library General Public License as published by
+.\" the Free Software Foundation; either version 2 of the License, or (at
+.\" your option) any later version.
+.\"
+.\" mLib is distributed in the hope that it will be useful, but WITHOUT
+.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
+.\" License for more details.
+.\"
+.\" You should have received a copy of the GNU Library General Public
+.\" License along with mLib.  If not, write to the Free Software
+.\" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+.\" USA.
+.
+.\"--------------------------------------------------------------------------
+.so ../defs.man \" @@@PRE@@@
+.
+.\"--------------------------------------------------------------------------
+.TH control 3mLib "23 April 2023" "Straylight/Edgeware" "mLib utilities library"
 .\" @MC_BEFORE
 .\" @MC_AFTER
 .\" @MC_WRAP
@@ -31,7 +45,13 @@ control \- control structure metaprogramming
 .\" @MC_LABEL
 .\" @MC_GOTO
 .
+.\"--------------------------------------------------------------------------
+.SH NAME
+control \- control structure metaprogramming
+.
+.\"--------------------------------------------------------------------------
 .SH SYNOPSIS
+.
 .nf
 .B "#include <mLib/control.h>"
 .PP
@@ -54,7 +74,9 @@ control \- control structure metaprogramming
 .BI MC_GOTO( tag )
 .fi
 .
+.\"--------------------------------------------------------------------------
 .SH DESCRIPTION
+.
 The header file
 .B <mLib/control.h>
 defines a number of macros which are useful
@@ -615,7 +637,9 @@ once
 completes,
 control transfers to the following statement.
 .
+.\"--------------------------------------------------------------------------
 .SH "BUGS"
+.
 Some macros cause free
 .B break
 and/or
@@ -639,13 +663,19 @@ but adopting that would do programmers a disservice
 by introducing a hazard for those
 trying to port code to other compilers which lack any such feature.
 .
+.\"--------------------------------------------------------------------------
 .SH "SEE ALSO"
-.BR mLib (3),
+.
 .BR macros (3).
+.BR mLib (3),
 .PP
 Simon Tatham,
 .IR "Metaprogramming custom control structures in C",
 .BR "https://www.chiark.greenend.org.uk/~sgtatham/mp/" .
 .
+.\"--------------------------------------------------------------------------
 .SH "AUTHOR"
+.
 Mark Wooding, <mdw@distorted.org.uk>
+.
+.\"----- That's all, folks --------------------------------------------------