aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libman.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-24 20:10:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-24 20:10:53 +0000
commitbdcaee420fe7a05a2069049d14aa31dce93be009 (patch)
tree497c84386ad0639f035b07c56b0fcd0e16c719fb /libman.h
parent0cbe61642c46c73e81d998bc81f574b30674e3cb (diff)
downloadmandoc-bdcaee420fe7a05a2069049d14aa31dce93be009.tar.gz
mandoc-bdcaee420fe7a05a2069049d14aa31dce93be009.tar.zst
mandoc-bdcaee420fe7a05a2069049d14aa31dce93be009.zip
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).
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h8
1 files changed, 4 insertions, 4 deletions
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 <kristaps@kth.se>
*
@@ -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 *);