summaryrefslogtreecommitdiffstats
path: root/validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-05 14:14:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-05 14:14:04 +0000
commitaf139bb8a38b36a5e3c8b1ce4b6455e65fcbb2e5 (patch)
tree97da58f821943e851232aa5f4c920f8683c372d8 /validate.c
parent81c41aec170d9b3e26c9c4de49a1b1e19dfce72d (diff)
downloadmandoc-af139bb8a38b36a5e3c8b1ce4b6455e65fcbb2e5.tar.gz
Actions and validations properly added.
Diffstat (limited to 'validate.c')
-rw-r--r--validate.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/validate.c b/validate.c
index 0f34066e..7a512bad 100644
--- a/validate.c
+++ b/validate.c
@@ -322,7 +322,6 @@ args_an(struct mdoc *mdoc, int tok, int pos,
int argc, const struct mdoc_arg *argv)
{
- printf("argc=%d, sz=%d\n", argc, sz);
if (0 != argc && 0 != sz)
return(mdoc_warn(mdoc, tok, pos, WARN_ARGS_EQ0));
return(1);
@@ -449,28 +448,14 @@ mdoc_valid_pre(struct mdoc *mdoc, int tok, int pos,
int argc, const struct mdoc_arg *argv)
{
- assert(tok < MDOC_MAX);
- if (mdoc_valids[tok].sz)
- if ( ! (*mdoc_valids[tok].sz)(mdoc, tok, pos, sz))
- return(0);
- if (mdoc_valids[tok].args)
- if ( ! (*mdoc_valids[tok].args)(mdoc, tok, pos,
- sz, args, argc, argv))
- return(0);
- if (mdoc_valids[tok].tree_pre)
- if ( ! (*mdoc_valids[tok].tree_pre)(mdoc, tok, pos))
- return(0);
return(1);
}
int
-mdoc_valid_post(struct mdoc *mdoc, int tok, int pos,
- int argc, const struct mdoc_arg *argv)
+mdoc_valid_post(struct mdoc *mdoc, int tok, int pos)
{
- if (mdoc_valids[tok].tree_post)
- return((*mdoc_valids[tok].tree_post)(mdoc, tok, pos));
return(1);
}