From a520ef48b70e5c01709c968c95b3f02314515f6f Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 23 Mar 2010 21:50:43 +0000 Subject: 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). --- libman.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libman.h') 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) -- cgit