diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-13 11:45:29 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-13 11:45:29 +0000 |
commit | 1aa6cc37dcc72475cfe4c2a003d11b606284f790 (patch) | |
tree | e54eb36b944b08bce1d256d7c997c150ff8080b7 /man.h | |
parent | 0e0a1095bd43dfa6ae1e90b823dac732a6ed980b (diff) | |
download | mandoc-1aa6cc37dcc72475cfe4c2a003d11b606284f790.tar.gz |
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.
Diffstat (limited to 'man.h')
-rw-r--r-- | man.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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) |