From bdcaee420fe7a05a2069049d14aa31dce93be009 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 24 Mar 2010 20:10:53 +0000 Subject: Using man_node_delete() instead of man_node_free()/man_node_freelist() and friends (much simpler). Split blk_imp() into blk_exp() (explicit macros), blk_dotted() (roff macros), and the original. Added de, dei, am, ami, and ig roff macros (for now, these are discarded within the parse). --- libman.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libman.h') diff --git a/libman.h b/libman.h index d366d6f8..bee1b549 100644 --- a/libman.h +++ b/libman.h @@ -1,4 +1,4 @@ -/* $Id: libman.h,v 1.26 2010/03/23 21:50:43 kristaps Exp $ */ +/* $Id: libman.h,v 1.27 2010/03/24 20:10:53 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -60,6 +60,7 @@ enum merr { WNOSCOPE, WOLITERAL, WNLITERAL, + WROFFNEST, WERRMAX }; @@ -73,6 +74,7 @@ struct man_macro { #define MAN_EXPLICIT (1 << 1) /* See blk_imp(). */ #define MAN_FSCOPED (1 << 2) /* See blk_imp(). */ #define MAN_NSCOPED (1 << 3) /* See in_line_eoln(). */ +#define MAN_NOCLOSE (1 << 4) /* See blk_exp(). */ }; extern const struct man_macro *const man_macros; @@ -93,9 +95,7 @@ int man_block_alloc(struct man *, int, int, enum mant); int man_head_alloc(struct man *, int, int, enum mant); int man_body_alloc(struct man *, int, int, enum mant); int man_elem_alloc(struct man *, int, int, enum mant); -void man_node_free(struct man_node *); -void man_node_freelist(struct man_node *); -void man_node_unlink(struct man *, struct man_node *); +void man_node_delete(struct man *, struct man_node *); void man_hash_init(void); enum mant man_hash_find(const char *); int man_macroend(struct man *); -- cgit v1.2.3