summaryrefslogtreecommitdiffstats
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
commit1bd27bfb1ecce0925949a108025f62bf87b5c5f5 (patch)
tree121babbde4f600edf3a9e716f4d00acf795aa3f6 /libman.h
parentefcc4d089d85c2b28629f9b05e441837f2c1a4f2 (diff)
downloadmandoc-1bd27bfb1ecce0925949a108025f62bf87b5c5f5.tar.gz
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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libman.h b/libman.h
index a4d5cbb5..747abfa9 100644
--- a/libman.h
+++ b/libman.h
@@ -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 *);