[BACK]Return to man_validate.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/man_validate.c between version 1.152 and 1.155

version 1.152, 2020/04/04 20:33:33 version 1.155, 2020/10/30 13:24:33
Line 34 
Line 34 
 #include "mandoc_aux.h"  #include "mandoc_aux.h"
 #include "mandoc.h"  #include "mandoc.h"
 #include "roff.h"  #include "roff.h"
 #include "tag.h"  
 #include "man.h"  #include "man.h"
 #include "libmandoc.h"  #include "libmandoc.h"
 #include "roff_int.h"  #include "roff_int.h"
 #include "libman.h"  #include "libman.h"
   #include "tag.h"
   
 #define CHKARGS   struct roff_man *man, struct roff_node *n  #define CHKARGS   struct roff_man *man, struct roff_node *n
   
Line 324  post_SH(CHKARGS)
Line 324  post_SH(CHKARGS)
                                         *cp = '_';                                          *cp = '_';
                         if (nc != NULL && nc->type == ROFFT_TEXT &&                          if (nc != NULL && nc->type == ROFFT_TEXT &&
                             strcmp(nc->string, tag) == 0)                              strcmp(nc->string, tag) == 0)
                                 tag_put(NULL, TAG_WEAK, n);                                  tag_put(NULL, TAG_STRONG, n);
                         else                          else
                                 tag_put(tag, TAG_FALLBACK, n);                                  tag_put(tag, TAG_FALLBACK, n);
                         free(tag);                          free(tag);
Line 510  post_TH(CHKARGS)
Line 510  post_TH(CHKARGS)
   
         if (n != NULL)          if (n != NULL)
                 n = n->next;                  n = n->next;
         if (n != NULL && n->string != NULL)          if (n != NULL && n->string != NULL) {
                 man->meta.msec = mandoc_strdup(n->string);                  man->meta.msec = mandoc_strdup(n->string);
         else {                  if (man->filesec != '\0' &&
                       man->filesec != *n->string &&
                       *n->string >= '1' && *n->string <= '9')
                           mandoc_msg(MANDOCERR_MSEC_FILE, n->line, n->pos,
                               "*.%c vs TH ... %c", man->filesec, *n->string);
           } else {
                 man->meta.msec = mandoc_strdup("");                  man->meta.msec = mandoc_strdup("");
                 mandoc_msg(MANDOCERR_MSEC_MISSING,                  mandoc_msg(MANDOCERR_MSEC_MISSING,
                     nb->line, nb->pos, "TH %s", man->meta.title);                      nb->line, nb->pos, "TH %s", man->meta.title);

Legend:
Removed from v.1.152  
changed lines
  Added in v.1.155

CVSweb