diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-19 16:38:48 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-19 16:38:48 +0000 |
commit | 28f9fee25bc0d8859b0400d14433644687182bfb (patch) | |
tree | 5dc36e4ffc02fad26843da2c5000a69caab6f42f /libmandoc.h | |
parent | 0d4d66664cc5e466a53a90e48693b01d4f071cbc (diff) | |
download | mandoc-28f9fee25bc0d8859b0400d14433644687182bfb.tar.gz |
Clean up parsing of delimiters in -mdoc. First, remove the "dowarn"
variable from mandoc_getarg() so that it prints the warning every time.
Then, remove the warning from args_checkpunct(). This way, warnings
are being posted at the correct time. This makes the flag argument to
mdoc_zargs() superfluous, so make it be zero when it's invoked. Finally,
move the args() flags into mdoc_argv.c and make them enums.
Diffstat (limited to 'libmandoc.h')
-rw-r--r-- | libmandoc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmandoc.h b/libmandoc.h index e78c5494..cdfa2c6e 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -74,8 +74,7 @@ void mandoc_msg(enum mandocerr, struct mparse *, void mandoc_vmsg(enum mandocerr, struct mparse *, int, int, const char *, ...); char *mandoc_strdup(const char *); -char *mandoc_getarg(struct mparse *, - char **, int, int, int *); +char *mandoc_getarg(struct mparse *, char **, int, int *); char *mandoc_normdate(struct mparse *, char *, int, int); int mandoc_eos(const char *, size_t, int); int mandoc_hyph(const char *, const char *); |