summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-09 21:19:42 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-09 21:19:42 +0000
commita1130d850b6f9f84a04057f2c37e005aae7f83db (patch)
tree83e4125fc534f68a780b1129cf8ac2112b75940f /mdoc_validate.c
parent56404f5192e3e5565fa8807435d1791a07f41b80 (diff)
downloadmandoc-a1130d850b6f9f84a04057f2c37e005aae7f83db.tar.gz
Remove -fno-ign-chars as well-argued by Ingo Schwarze. Patch by Ingo Schwarze, too.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 22db47a8..5390158d 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -60,7 +60,6 @@ static int err_child_gt(struct mdoc *, const char *, int);
static int warn_child_gt(struct mdoc *, const char *, int);
static int err_child_eq(struct mdoc *, const char *, int);
static int warn_child_eq(struct mdoc *, const char *, int);
-static int warn_print(struct mdoc *, int, int);
static int warn_count(struct mdoc *, const char *,
int, const char *, int);
static int err_count(struct mdoc *, const char *,
@@ -323,16 +322,6 @@ mdoc_valid_post(struct mdoc *mdoc)
}
-static int
-warn_print(struct mdoc *m, int ln, int pos)
-{
-
- if (MDOC_IGN_CHARS & m->pflags)
- return(mdoc_pwarn(m, ln, pos, EPRINT));
- return(mdoc_perr(m, ln, pos, EPRINT));
-}
-
-
static inline int
warn_count(struct mdoc *m, const char *k,
int want, const char *v, int has)
@@ -518,10 +507,10 @@ check_text(struct mdoc *mdoc, int line, int pos, const char *p)
for ( ; *p; p++, pos++) {
if ('\t' == *p) {
if ( ! (MDOC_LITERAL & mdoc->flags))
- if ( ! warn_print(mdoc, line, pos))
+ if ( ! mdoc_pwarn(mdoc, line, pos, EPRINT))
return(0);
} else if ( ! isprint((u_char)*p))
- if ( ! warn_print(mdoc, line, pos))
+ if ( ! mdoc_pwarn(mdoc, line, pos, EPRINT))
return(0);
if ('\\' != *p)