summaryrefslogtreecommitdiffstats
path: root/libmdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-28 23:21:32 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-28 23:21:32 +0000
commit857b9aac8422fa0bebd1d83b87c8fbf4d7a1f044 (patch)
treeaa5cdd5a3b077933cd75144c5f9f2357248ffd8e /libmdoc.h
parent4a85145c79815ddda6b35fbdacddd5665d12ac97 (diff)
downloadmandoc-857b9aac8422fa0bebd1d83b87c8fbf4d7a1f044.tar.gz
Fold the loop around mdoc_argv() into the function itself,
it was the same in all four cases. As a bonus, get rid of one enum type that was used for internal communication. No functional change, minus 40 lines of code.
Diffstat (limited to 'libmdoc.h')
-rw-r--r--libmdoc.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/libmdoc.h b/libmdoc.h
index d4aded37..c65ee055 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -77,13 +77,6 @@ enum margserr {
ARGS_PEND /* last phrase (-column) */
};
-enum margverr {
- ARGV_ERROR,
- ARGV_EOLN, /* end of line */
- ARGV_ARG, /* valid argument */
- ARGV_WORD /* normal word (or bad argument---same thing) */
-};
-
/*
* A punctuation delimiter is opening, closing, or "middle mark"
* punctuation. These govern spacing.
@@ -127,7 +120,7 @@ const char *mdoc_a2st(const char *);
const char *mdoc_a2arch(const char *);
void mdoc_valid_pre(struct mdoc *, struct mdoc_node *);
void mdoc_valid_post(struct mdoc *);
-enum margverr mdoc_argv(struct mdoc *, int, enum mdoct,
+void mdoc_argv(struct mdoc *, int, enum mdoct,
struct mdoc_arg **, int *, char *);
void mdoc_argv_free(struct mdoc_arg *);
enum margserr mdoc_args(struct mdoc *, int,