summaryrefslogtreecommitdiffstats
path: root/mdoc_argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-07 05:34:56 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-07 05:34:56 +0000
commitc78f5a1f78e5222eed678f27a57137e97b3554ec (patch)
treea4cbed397173131d985dd9266e1529c37da68c71 /mdoc_argv.c
parentee1efc7ed8c876d4caa29dff7e31b99d3b1773f9 (diff)
downloadmandoc-c78f5a1f78e5222eed678f27a57137e97b3554ec.tar.gz
Wrangle mdoc_args() and mdoc_zargs() to use enum return type.
Fixed lookup() and lookup_raw() to correctly use enum type. Quashed in_line_argn() bug (not reported, but there) where mixing return values.
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r--mdoc_argv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c
index 2aaa8a61..ab0f7fbf 100644
--- a/mdoc_argv.c
+++ b/mdoc_argv.c
@@ -45,7 +45,7 @@
#define MULTI_STEP 5
static int argv_a2arg(enum mdoct, const char *);
-static int args(struct mdoc *, int, int *,
+static enum margerr args(struct mdoc *, int, int *,
char *, int, char **);
static int argv(struct mdoc *, int,
struct mdoc_argv *, int *, char *);
@@ -325,7 +325,7 @@ mdoc_argn_free(struct mdoc_arg *p, int iarg)
}
-int
+enum margerr
mdoc_zargs(struct mdoc *m, int line, int *pos,
char *buf, int flags, char **v)
{
@@ -334,7 +334,7 @@ mdoc_zargs(struct mdoc *m, int line, int *pos,
}
-int
+enum margerr
mdoc_args(struct mdoc *m, int line, int *pos,
char *buf, enum mdoct tok, char **v)
{
@@ -372,7 +372,7 @@ mdoc_args(struct mdoc *m, int line, int *pos,
}
-static int
+static enum margerr
args(struct mdoc *m, int line, int *pos,
char *buf, int fl, char **v)
{