[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.304 and 1.305

version 1.304, 2016/08/10 12:29:38 version 1.305, 2016/08/10 20:17:50
Line 1761  post_sh_authors(POST_ARGS)
Line 1761  post_sh_authors(POST_ARGS)
 static void  static void
 post_sh_head(POST_ARGS)  post_sh_head(POST_ARGS)
 {  {
         const char      *goodsec;          struct roff_node        *nch;
         enum roff_sec    sec;          const char              *goodsec;
           enum roff_sec            sec;
   
         /*          /*
          * Process a new section.  Sections are either "named" or           * Process a new section.  Sections are either "named" or
Line 1778  post_sh_head(POST_ARGS)
Line 1779  post_sh_head(POST_ARGS)
         if (sec != SEC_NAME && mdoc->lastnamed == SEC_NONE)          if (sec != SEC_NAME && mdoc->lastnamed == SEC_NONE)
                 mandoc_vmsg(MANDOCERR_NAMESEC_FIRST, mdoc->parse,                  mandoc_vmsg(MANDOCERR_NAMESEC_FIRST, mdoc->parse,
                     mdoc->last->line, mdoc->last->pos, "Sh %s",                      mdoc->last->line, mdoc->last->pos, "Sh %s",
                     sec == SEC_CUSTOM ? mdoc->last->child->string :                      sec != SEC_CUSTOM ? secnames[sec] :
                     secnames[sec]);                      (nch = mdoc->last->child) == NULL ? "" :
                       nch->type == ROFFT_TEXT ? nch->string :
                       mdoc_macronames[nch->tok]);
   
         /* The SYNOPSIS gets special attention in other areas. */          /* The SYNOPSIS gets special attention in other areas. */
   

Legend:
Removed from v.1.304  
changed lines
  Added in v.1.305

CVSweb