[BACK]Return to mdoc_validate.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/mdoc_validate.c between version 1.157 and 1.158

version 1.157, 2014/08/08 15:54:10 version 1.158, 2014/08/08 15:57:05
Line 1661 
Line 1661 
         /* Check that we begin with a proper `Sh'. */          /* Check that we begin with a proper `Sh'. */
   
         if (NULL == n->child)          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)          else if (MDOC_Sh != n->child->tok)
                 mandoc_msg(MANDOCERR_SEC_BEFORE, mdoc->parse,                  mandoc_msg(MANDOCERR_SEC_BEFORE, mdoc->parse,
                     n->child->line, n->child->pos,                      n->child->line, n->child->pos,
Line 1840 
Line 1841 
 {  {
   
         if (MDOC_LINE & mdoc->last->flags)          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);          return(1);
 }  }
   

Legend:
Removed from v.1.157  
changed lines
  Added in v.1.158