summaryrefslogtreecommitdiffstats
path: root/mdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-01 20:40:16 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-01 20:40:16 +0000
commit8df8a36888bd7cf090c351097d6c520905c2bfd9 (patch)
tree66e6fb72a61e523064542277d17b144b7b9e0b26 /mdocml.c
parent322cc23a55808335259ba133ec8d4067bf9a122f (diff)
downloadmandoc-8df8a36888bd7cf090c351097d6c520905c2bfd9.tar.gz
Broke apart macro_prologuexxx into prologue.
Fixed validation for line-scoped. Merged const_arg and const.
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c5
1 files changed, 3 insertions, 2 deletions
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 */