From 8df8a36888bd7cf090c351097d6c520905c2bfd9 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 1 Jan 2009 20:40:16 +0000 Subject: Broke apart macro_prologuexxx into prologue. Fixed validation for line-scoped. Merged const_arg and const. --- mdocml.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdocml.c') diff --git a/mdocml.c b/mdocml.c index 1b6cd227..57c83861 100644 --- a/mdocml.c +++ b/mdocml.c @@ -205,8 +205,6 @@ print_node(const struct mdoc_node *n, int indent) case (MDOC_HEAD): p = mdoc_macronames[n->data.head.tok]; t = "block-head"; - params = n->data.head.args; - sz = n->data.head.sz; break; case (MDOC_ELEM): assert(NULL == n->child); @@ -400,6 +398,9 @@ msg_err(void *arg, int tok, int col, enum mdoc_err type) case (ERR_SYNTAX_ARGMANY): lit = "syntax: too many values for macro argument"; break; + case (ERR_CHILD_HEAD): + lit = "scope context expects block-header child"; + break; default: abort(); /* NOTREACHED */ -- cgit