[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.126 and 1.127

version 1.126, 2014/03/31 00:02:45 version 1.127, 2014/04/15 00:41:02
Line 1946 
Line 1946 
 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 1958 
Line 1958 
   
         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 2003 
Line 1996 
   
         /* 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 2048 
Line 2043 
                 break;                  break;
         }          }
   
           free(secname);
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.126  
changed lines
  Added in v.1.127