-int man_elem_alloc(struct man *, int, int, int);
-int man_block_alloc(struct man *, int, int, int);
-int man_head_alloc(struct man *, int, int, int);
-int man_body_alloc(struct man *, int, int, int);
-void man_node_free(struct man_node *);
-void man_node_freelist(struct man_node *);
-void *man_hash_alloc(void);
-int man_hash_find(const void *, const char *);
-void man_hash_free(void *);
+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_delete(struct man *, struct man_node *);
+void man_hash_init(void);
+enum mant man_hash_find(const char *);
+int man_macroend(struct man *);
+int man_args(struct man *, int, int *, char *, char **);
+#define ARGS_ERROR (-1)
+#define ARGS_EOLN (0)
+#define ARGS_WORD (1)
+#define ARGS_QWORD (1)
+int man_vmsg(struct man *, enum mandocerr,
+ int, int, const char *, ...);
+int man_valid_post(struct man *);
+int man_valid_pre(struct man *, struct man_node *);
+int man_action_post(struct man *);
+int man_action_pre(struct man *, struct man_node *);
+int man_unscope(struct man *,
+ const struct man_node *, enum mandocerr);