summaryrefslogtreecommitdiffstats
path: root/libman.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-23 12:40:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-23 12:40:04 +0000
commit22671958d103a1eca7f6675bff049e902034637b (patch)
treeaedf5abb7525d51424973358454579d2540e6303 /libman.h
parente29490c2a6462d5308d34e9cad6e8b105edbd029 (diff)
downloadmandoc-22671958d103a1eca7f6675bff049e902034637b.tar.gz
First, make -man ARGS_EOLN et al. be an enum. Second, remove
ARGS_ERROR, as it is never returned by man_args(). Then clean up invocations of man_args() to only check for ARGS_EOLN.
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/libman.h b/libman.h
index a1afde88..ca90646e 100644
--- a/libman.h
+++ b/libman.h
@@ -56,6 +56,12 @@ struct man_macro {
#define MAN_NOCLOSE (1 << 4) /* See blk_exp(). */
};
+enum margserr {
+ ARGS_EOLN,
+ ARGS_WORD,
+ ARGS_QWORD
+};
+
extern const struct man_macro *const man_macros;
__BEGIN_DECLS
@@ -72,13 +78,9 @@ 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 *);
+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)
+enum margserr man_args(struct man *, int, int *, char *, char **);
int man_valid_post(struct man *);
int man_valid_pre(struct man *, struct man_node *);
int man_unscope(struct man *,