-/* $Id: mdoc_validate.c,v 1.239 2014/08/01 17:27:44 schwarze Exp $ */
+/* $Id: mdoc_validate.c,v 1.240 2014/08/01 17:40:34 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
/* Check that we begin with a proper `Sh'. */
if (NULL == n->child)
- mdoc_nmsg(mdoc, n, MANDOCERR_DOC_EMPTY);
+ mandoc_msg(MANDOCERR_DOC_EMPTY, mdoc->parse,
+ n->line, n->pos, NULL);
else if (MDOC_Sh != n->child->tok)
mandoc_msg(MANDOCERR_SEC_BEFORE, mdoc->parse,
n->child->line, n->child->pos,
{
if (MDOC_LINE & mdoc->last->flags)
- mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_NS_SKIP);
+ mandoc_msg(MANDOCERR_NS_SKIP, mdoc->parse,
+ mdoc->last->line, mdoc->last->pos, NULL);
return(1);
}