=================================================================== RCS file: /cvs/mandoc/Attic/mdocml.c,v retrieving revision 1.28 retrieving revision 1.31 diff -u -p -r1.28 -r1.31 --- mandoc/Attic/mdocml.c 2008/12/29 18:08:44 1.28 +++ mandoc/Attic/mdocml.c 2009/01/01 20:40:16 1.31 @@ -1,4 +1,4 @@ -/* $Id: mdocml.c,v 1.28 2008/12/29 18:08:44 kristaps Exp $ */ +/* $Id: mdocml.c,v 1.31 2009/01/01 20:40:16 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -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); @@ -370,6 +368,9 @@ msg_err(void *arg, int tok, int col, enum mdoc_err typ case (ERR_ARGS_EQ0): fmt = "macro `%s' expects zero arguments"; break; + case (ERR_ARGS_EQ1): + fmt = "macro `%s' expects one argument"; + break; case (ERR_ARGS_GE1): fmt = "macro `%s' expects one or more arguments"; break; @@ -397,6 +398,9 @@ msg_err(void *arg, int tok, int col, enum mdoc_err typ 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 */ @@ -496,6 +500,9 @@ msg_warn(void *arg, int tok, int col, enum mdoc_warn t break; case (WARN_IGN_AFTER_BLK): fmt = "ignore: macro `%s' ignored after block macro"; + break; + case (WARN_IGN_OBSOLETE): + fmt = "ignore: macro `%s' is obsolete"; break; case (WARN_IGN_BEFORE_BLK): fmt = "ignore: macro before block macro `%s' ignored";