@@@ much mess, mostly manpages
[mLib] / mem / sub.3.in
similarity index 64%
rename from mem/sub.3
rename to mem/sub.3.in
index 23e751d..0382fe0 100644 (file)
--- a/mem/sub.3
@@ -1,19 +1,34 @@
 .\" -*-nroff-*-
-.de VS
-.sp 1
-.RS
-.nf
-.ft B
-..
-.de VE
-.ft R
-.fi
-.RE
-.sp 1
-..
-.TH sub 3 "8 May 1999" "Straylight/Edgeware" "mLib utilities library"
-.SH NAME
-sub \- efficient allocation and freeing of small blocks
+.\"
+.\" Manual for efficient small-block allocation
+.\"
+.\" (c) 1999, 2001, 2003, 2005, 2007, 2009, 2023, 2024 Straylight/Edgeware
+.\"
+.
+.\"----- 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 sub 3mLib "8 May 1999" "Straylight/Edgeware" "mLib utilities library"
 .\" @subarena_create
 .\" @subarena_destroy
 .\" @subarena_alloc
@@ -21,13 +36,19 @@ sub \- efficient allocation and freeing of small blocks
 .\" @sub_alloc
 .\" @sub_free
 .\" @sub_init
-.\"
+.
 .\" @A_CREATE
 .\" @A_DESTROY
 .\" @CREATE
 .\" @DESTROY
-.\"
+.
+.\"--------------------------------------------------------------------------
+.SH NAME
+sub \- efficient allocation and freeing of small blocks
+.
+.\"--------------------------------------------------------------------------
 .SH SYNOPSIS
+.
 .nf
 .B "#include <mLib/sub.h>"
 .PP
@@ -47,7 +68,10 @@ sub \- efficient allocation and freeing of small blocks
 .BI "void *CREATE(" type );
 .BI "void DESTROY(" type " *" p );
 .fi
+.
+.\"--------------------------------------------------------------------------
 .SH DESCRIPTION
+.
 The
 .B subarena
 collection of functions and macros implement an efficient allocator for
@@ -135,10 +159,18 @@ The function
 ought to be called before any of the other functions as a matter of good
 taste, but actually the system will initialize itself the first time
 it's used.
+.
+.\"--------------------------------------------------------------------------
 .SH "SEE ALSO"
+.
 .BR arena (3),
 .BR exc (3),
 .BR alloc (3),
 .BR mLib (3).
+.
+.\"--------------------------------------------------------------------------
 .SH AUTHOR
+.
 Mark Wooding, <mdw@distorted.org.uk>
+.
+.\"----- That's all, folks --------------------------------------------------