From f7add3eaf5bbb4a516a7dc5a828444b82ea8cd2d Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 13 Aug 2009 11:45:29 +0000 Subject: Significant overhaul in libman. Macros are now block- and line-scoped (with next-line scope extensions possible). man.7 reflects block and line scoping, and also includes a REFERENCE section that will be used as a template for the big mdoc reference. Many fixes in next-line behaviour for both inline and block macros. Added some macros for compatibility (from me.7). Corrected quoted-literal handling for libman. --- man.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'man.h') diff --git a/man.h b/man.h index ab2e0c51..f17964bb 100644 --- a/man.h +++ b/man.h @@ -1,4 +1,4 @@ -/* $Id: man.h,v 1.16 2009/07/24 20:22:24 kristaps Exp $ */ +/* $Id: man.h,v 1.17 2009/08/13 11:45:29 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -43,12 +43,18 @@ #define MAN_na 21 #define MAN_i 22 #define MAN_sp 23 -#define MAN_MAX 24 +#define MAN_nf 24 +#define MAN_fi 25 +#define MAN_r 26 +#define MAN_MAX 27 enum man_type { MAN_TEXT, MAN_ELEM, - MAN_ROOT + MAN_ROOT, + MAN_BLOCK, + MAN_HEAD, + MAN_BODY }; struct man_meta { @@ -73,6 +79,8 @@ struct man_node { #define MAN_ACTED (1 << 1) enum man_type type; char *string; + struct man_node *head; + struct man_node *body; }; #define MAN_IGN_MACRO (1 << 0) -- cgit v1.2.3-56-ge451