aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit34499b8564d56a778ba364385e208a4f51fe3e04 (patch)
tree0c78bde878a6332cb0a86899a6ec78b8280424ae /libman.h
parent9d21f98e87769f507e830afa6f4ed4567f5a01f1 (diff)
downloadmandoc-34499b8564d56a778ba364385e208a4f51fe3e04.tar.gz
mandoc-34499b8564d56a778ba364385e208a4f51fe3e04.tar.zst
mandoc-34499b8564d56a778ba364385e208a4f51fe3e04.zip
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.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libman.h b/libman.h
index 28dc5ffa..d366d6f8 100644
--- a/libman.h
+++ b/libman.h
@@ -1,4 +1,4 @@
-/* $Id: libman.h,v 1.25 2010/03/22 14:03:03 kristaps Exp $ */
+/* $Id: libman.h,v 1.26 2010/03/23 21:50:43 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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)