[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.86 and 1.87

version 1.86, 2010/05/30 11:47:44 version 1.87, 2010/05/30 22:56:02
Line 928  post_an(POST_ARGS)
Line 928  post_an(POST_ARGS)
 static int  static int
 post_it(POST_ARGS)  post_it(POST_ARGS)
 {  {
           /* FIXME: use mdoc_list! */
         int               type, i, cols;          int               type, i, cols;
         struct mdoc_node *n, *c;          struct mdoc_node *n, *c;
   
Line 1017  post_it(POST_ARGS)
Line 1018  post_it(POST_ARGS)
                                 return(0);                                  return(0);
                 break;                  break;
         case (MDOC_Column):          case (MDOC_Column):
                 if (NULL == mdoc->last->head->child)                  assert(NULL == mdoc->last->head->child);
                         if ( ! mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_NOARGS))                  if (NULL == mdoc->last->body->child)
                           if ( ! mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_NOBODY))
                                 return(0);                                  return(0);
                 if (mdoc->last->body->child)  
                         if ( ! mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_BODYLOST))                  /* Count up the number of columns.  */
                                 return(0);  
                 c = mdoc->last->child;                  c = mdoc->last->child;
                 for (i = 0; c && MDOC_HEAD == c->type; c = c->next)                  for (i = 0; c; c = c->next)
                         i++;                          if (MDOC_BODY == c->type)
                                   i++;
   
                 if (i < cols) {                  if (i < cols) {
                         if ( ! mdoc_vmsg(mdoc, MANDOCERR_ARGCOUNT,                          if ( ! mdoc_vmsg(mdoc, MANDOCERR_ARGCOUNT,

Legend:
Removed from v.1.86  
changed lines
  Added in v.1.87

CVSweb