summaryrefslogtreecommitdiffstats
path: root/libman.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-23 21:50:43 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-23 21:50:43 +0000
commita520ef48b70e5c01709c968c95b3f02314515f6f (patch)
tree03ee911af1fc7b600ee80106511b10f90c14fba9 /libman.h
parent35ac570ed4a7f722db3bafc6585c2e75c36b7413 (diff)
downloadmandoc-a520ef48b70e5c01709c968c95b3f02314515f6f.tar.gz
libman using enum mant instead of #defines for macros.
Clean-ups, better documentation in man_hash.c. Added extra space for "." in man_hash.c (unused for the time being).
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libman.h b/libman.h
index 2efafe78..a4d5cbb5 100644
--- a/libman.h
+++ b/libman.h
@@ -63,7 +63,7 @@ enum merr {
WERRMAX
};
-#define MACRO_PROT_ARGS struct man *m, int tok, int line, \
+#define MACRO_PROT_ARGS struct man *m, enum mant tok, int line, \
int ppos, int *pos, char *buf
struct man_macro {
@@ -89,15 +89,15 @@ __BEGIN_DECLS
man_err((m), (n)->line, (n)->pos, 0, (t))
int man_word_alloc(struct man *, int, int, const char *);
-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);
-int man_elem_alloc(struct man *, int, int, int);
+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_hash_init(void);
-int man_hash_find(const char *);
+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)