diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-29 03:37:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-29 03:37:44 +0000 |
commit | 3d06fba36aaf6d0e66e60fba15af8837414b9ff9 (patch) | |
tree | 16b27bee82e04643322d42523d978a2b926670c4 /libmdoc.h | |
parent | 857b9aac8422fa0bebd1d83b87c8fbf4d7a1f044 (diff) | |
download | mandoc-3d06fba36aaf6d0e66e60fba15af8837414b9ff9.tar.gz |
Provide a helper function macro_or_word() and use it to prune the
same chunk of argument parsing code out of five of the eight callback
functions. The other three have too much special handling to
participate.
As a bonus, let lookup() and mdoc_args() deal with line macros and
retire the lookup_raw() helper and the mdoc_zargs() internal interface
function.
No functional change, minus 40 lines of code.
Diffstat (limited to 'libmdoc.h')
-rw-r--r-- | libmdoc.h | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -125,8 +125,6 @@ void mdoc_argv(struct mdoc *, int, enum mdoct, void mdoc_argv_free(struct mdoc_arg *); enum margserr mdoc_args(struct mdoc *, int, int *, char *, enum mdoct, char **); -enum margserr mdoc_zargs(struct mdoc *, int, - int *, char *, char **); void mdoc_macroend(struct mdoc *); enum mdelim mdoc_isdelim(const char *); |