[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.50 and 1.51

version 1.50, 2010/05/14 01:54:37 version 1.51, 2010/05/14 14:47:44
Line 1284 
Line 1284 
                         return(mdoc_nerr(mdoc, n, ETOOLONG));                          return(mdoc_nerr(mdoc, n, ETOOLONG));
         }          }
   
         sec = mdoc_atosec(buf);          sec = mdoc_str2sec(buf);
   
         /*          /*
          * Check: NAME should always be first, CUSTOM has no roles,           * Check: NAME should always be first, CUSTOM has no roles,
          * non-CUSTOM has a conventional order to be followed.           * non-CUSTOM has a conventional order to be followed.
          */           */
   
         if (SEC_NAME != sec && SEC_NONE == mdoc->lastnamed &&          if (SEC_NAME != sec && SEC_NONE == mdoc->lastnamed)
                         ! mdoc_nwarn(mdoc, mdoc->last, ESECNAME))                  if ( ! mdoc_nwarn(mdoc, mdoc->last, ESECNAME))
                 return(0);                          return(0);
   
         if (SEC_CUSTOM == sec)          if (SEC_CUSTOM == sec)
                 return(1);                  return(1);
   
         if (sec == mdoc->lastnamed)          if (sec == mdoc->lastnamed)
                 if ( ! mdoc_nwarn(mdoc, mdoc->last, ESECREP))                  if ( ! mdoc_nwarn(mdoc, mdoc->last, ESECREP))
                         return(0);                          return(0);
   
         if (sec < mdoc->lastnamed)          if (sec < mdoc->lastnamed)
                 if ( ! mdoc_nwarn(mdoc, mdoc->last, ESECOOO))                  if ( ! mdoc_nwarn(mdoc, mdoc->last, ESECOOO))
                         return(0);                          return(0);

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51