[BACK]Return to mdoc_validate.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mdoc_validate.c between version 1.219 and 1.222

version 1.219, 2014/07/02 05:52:25 version 1.222, 2014/07/02 19:55:10
Line 591  pre_display(PRE_ARGS)
Line 591  pre_display(PRE_ARGS)
                                 break;                                  break;
   
         if (node)          if (node)
                 mdoc_nmsg(mdoc, n, MANDOCERR_NESTEDDISP);                  mandoc_vmsg(MANDOCERR_BD_NEST,
                       mdoc->parse, n->line, n->pos,
                       "%s in Bd", mdoc_macronames[n->tok]);
   
         return(1);          return(1);
 }  }
Line 1115  post_vt(POST_ARGS)
Line 1117  post_vt(POST_ARGS)
   
         for (n = mdoc->last->child; n; n = n->next)          for (n = mdoc->last->child; n; n = n->next)
                 if (MDOC_TEXT != n->type)                  if (MDOC_TEXT != n->type)
                         mdoc_nmsg(mdoc, n, MANDOCERR_CHILD);                          mandoc_msg(MANDOCERR_VT_CHILD, mdoc->parse,
                               n->line, n->pos, mdoc_macronames[n->tok]);
   
         return(1);          return(1);
 }  }
Line 1611  post_bl(POST_ARGS)
Line 1614  post_bl(POST_ARGS)
                         continue;                          continue;
                 }                  }
   
                 mdoc_nmsg(mdoc, nchild, MANDOCERR_CHILD);                  mandoc_msg(MANDOCERR_BL_MOVE, mdoc->parse,
                       nchild->line, nchild->pos,
                       mdoc_macronames[nchild->tok]);
   
                 /*                  /*
                  * Move the node out of the Bl block.                   * Move the node out of the Bl block.
Line 1663  ebool(struct mdoc *mdoc)
Line 1668  ebool(struct mdoc *mdoc)
 {  {
   
         if (NULL == mdoc->last->child) {          if (NULL == mdoc->last->child) {
                 mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_MACROEMPTY);                  if (MDOC_Sm == mdoc->last->tok)
                 mdoc_node_delete(mdoc, mdoc->last);                          mdoc->flags ^= MDOC_SMOFF;
                 return(1);                  return(1);
         }          }
         check_count(mdoc, MDOC_ELEM, CHECK_WARN, CHECK_EQ, 1);  
   
           check_count(mdoc, MDOC_ELEM, CHECK_WARN, CHECK_LT, 2);
   
         assert(MDOC_TEXT == mdoc->last->child->type);          assert(MDOC_TEXT == mdoc->last->child->type);
   
         if (0 == strcmp(mdoc->last->child->string, "on")) {          if (0 == strcmp(mdoc->last->child->string, "on")) {
Line 1780  post_rs(POST_ARGS)
Line 1786  post_rs(POST_ARGS)
                 }                  }
   
                 next = nn->next;                  next = nn->next;
                 mdoc_nmsg(mdoc, nn, MANDOCERR_CHILD);                  mandoc_msg(MANDOCERR_RS_SKIP, mdoc->parse,
                       nn->line, nn->pos, mdoc_macronames[nn->tok]);
                 mdoc_node_delete(mdoc, nn);                  mdoc_node_delete(mdoc, nn);
         }          }
   
Line 1903  post_ns(POST_ARGS)
Line 1910  post_ns(POST_ARGS)
 {  {
   
         if (MDOC_LINE & mdoc->last->flags)          if (MDOC_LINE & mdoc->last->flags)
                 mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_IGNNS);                  mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_NS_SKIP);
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.219  
changed lines
  Added in v.1.222

CVSweb