aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-19 16:38:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-19 16:38:48 +0000
commit33c39adb2b4cab7469a2d975f4437c5ea1906a51 (patch)
treee74241a62d295a3c5737e4ec93a01c546460a1a0 /libmandoc.h
parent9401becf4a6af1e874c79bccb992847aad44da62 (diff)
downloadmandoc-33c39adb2b4cab7469a2d975f4437c5ea1906a51.tar.gz
mandoc-33c39adb2b4cab7469a2d975f4437c5ea1906a51.tar.zst
mandoc-33c39adb2b4cab7469a2d975f4437c5ea1906a51.zip
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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libmandoc.h b/libmandoc.h
index efbb4d83..eafcb2c6 100644
--- a/libmandoc.h
+++ b/libmandoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmandoc.h,v 1.19 2011/04/17 09:08:19 kristaps Exp $ */
+/* $Id: libmandoc.h,v 1.20 2011/04/19 16:38:48 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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 *);