[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.208 and 1.209

version 1.208, 2014/03/31 01:05:32 version 1.209, 2014/04/15 00:41:09
Line 1950  static int
Line 1950  static int
 post_sh_head(POST_ARGS)  post_sh_head(POST_ARGS)
 {  {
         struct mdoc_node *n;          struct mdoc_node *n;
         const char      *secname;          char            *secname;
         enum mdoc_sec    sec;          enum mdoc_sec    sec;
   
         /*          /*
Line 1962  post_sh_head(POST_ARGS)
Line 1962  post_sh_head(POST_ARGS)
   
         secname = NULL;          secname = NULL;
         sec = SEC_CUSTOM;          sec = SEC_CUSTOM;
         n = mdoc->last;          mdoc_deroff(&secname, mdoc->last);
         if (n->child) {          sec = NULL == secname ? SEC_CUSTOM : a2sec(secname);
                 assert(1 == n->nchild);  
                 n = n->child;  
                 assert(NULL != n);  
                 assert(MDOC_TEXT == n->type);  
                 secname = n->string;  
                 sec = a2sec(secname);  
         }  
   
         /* The NAME should be first. */          /* The NAME should be first. */
   
Line 2007  post_sh_head(POST_ARGS)
Line 2000  post_sh_head(POST_ARGS)
   
         /* We don't care about custom sections after this. */          /* We don't care about custom sections after this. */
   
         if (SEC_CUSTOM == sec)          if (SEC_CUSTOM == sec) {
                   free(secname);
                 return(1);                  return(1);
           }
   
         /*          /*
          * Check whether our non-custom section is being repeated or is           * Check whether our non-custom section is being repeated or is
Line 2052  post_sh_head(POST_ARGS)
Line 2047  post_sh_head(POST_ARGS)
                 break;                  break;
         }          }
   
           free(secname);
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.208  
changed lines
  Added in v.1.209

CVSweb