[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.38 and 1.41

version 1.38, 2009/07/20 15:05:34 version 1.41, 2009/07/25 16:03:03
Line 912  post_an(POST_ARGS)
Line 912  post_an(POST_ARGS)
         if (mdoc->last->args) {          if (mdoc->last->args) {
                 if (NULL == mdoc->last->child)                  if (NULL == mdoc->last->child)
                         return(1);                          return(1);
                 return(mdoc_nerr(mdoc, mdoc->last, ELINE));                  return(mdoc_nerr(mdoc, mdoc->last, ENOLINE));
         }          }
   
         if (mdoc->last->child)          if (mdoc->last->child)
Line 1029  post_it(POST_ARGS)
Line 1029  post_it(POST_ARGS)
                 for (i = 0; c && MDOC_HEAD == c->type; c = c->next)                  for (i = 0; c && MDOC_HEAD == c->type; c = c->next)
                         i++;                          i++;
   
                 if (i < cols) {                  if (i < cols || i == (cols + 1)) {
                         if ( ! mdoc_vwarn(mdoc, mdoc->last->line,                          if ( ! mdoc_vwarn(mdoc, mdoc->last->line,
                                         mdoc->last->pos, "column "                                          mdoc->last->pos, "column "
                                         "mismatch: have %d, want %d",                                          "mismatch: have %d, want %d",
Line 1219  post_sh_body(POST_ARGS)
Line 1219  post_sh_body(POST_ARGS)
                         return(0);                          return(0);
         }          }
   
           assert(n);
         if (MDOC_BLOCK == n->type && MDOC_Nd == n->tok)          if (MDOC_BLOCK == n->type && MDOC_Nd == n->tok)
                 return(1);                  return(1);
         return(mdoc_nwarn(mdoc, mdoc->last, ENAMESECINC));          return(mdoc_nwarn(mdoc, mdoc->last, ENAMESECINC));

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.41

CVSweb