[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.148 and 1.149

version 1.148, 2019/03/13 18:29:18 version 1.149, 2019/06/27 15:07:30
Line 185  check_root(CHKARGS)
Line 185  check_root(CHKARGS)
   
                 man->meta.title = mandoc_strdup("");                  man->meta.title = mandoc_strdup("");
                 man->meta.msec = mandoc_strdup("");                  man->meta.msec = mandoc_strdup("");
                 man->meta.date = man->quick ? mandoc_strdup("") :                  man->meta.date = mandoc_normdate(man, NULL, n->line, n->pos);
                     mandoc_normdate(man, NULL, n->line, n->pos);  
         }          }
   
         if (man->meta.os_e &&          if (man->meta.os_e &&
Line 369  post_TH(CHKARGS)
Line 368  post_TH(CHKARGS)
         /* ->TITLE<- MSEC DATE OS VOL */          /* ->TITLE<- MSEC DATE OS VOL */
   
         n = n->child;          n = n->child;
         if (n && n->string) {          if (n != NULL && n->string != NULL) {
                 for (p = n->string; '\0' != *p; p++) {                  for (p = n->string; *p != '\0'; p++) {
                         /* Only warn about this once... */                          /* Only warn about this once... */
                         if (isalpha((unsigned char)*p) &&                          if (isalpha((unsigned char)*p) &&
                             ! isupper((unsigned char)*p)) {                              ! isupper((unsigned char)*p)) {
Line 388  post_TH(CHKARGS)
Line 387  post_TH(CHKARGS)
   
         /* TITLE ->MSEC<- DATE OS VOL */          /* TITLE ->MSEC<- DATE OS VOL */
   
         if (n)          if (n != NULL)
                 n = n->next;                  n = n->next;
         if (n && n->string)          if (n != NULL && n->string != NULL)
                 man->meta.msec = mandoc_strdup(n->string);                  man->meta.msec = mandoc_strdup(n->string);
         else {          else {
                 man->meta.msec = mandoc_strdup("");                  man->meta.msec = mandoc_strdup("");
Line 400  post_TH(CHKARGS)
Line 399  post_TH(CHKARGS)
   
         /* TITLE MSEC ->DATE<- OS VOL */          /* TITLE MSEC ->DATE<- OS VOL */
   
         if (n)          if (n != NULL)
                 n = n->next;                  n = n->next;
         if (n && n->string && '\0' != n->string[0]) {          if (n != NULL && n->string != NULL && n->string[0] != '\0')
                 man->meta.date = man->quick ?                  man->meta.date = mandoc_normdate(man,
                     mandoc_strdup(n->string) :                      n->string, n->line, n->pos);
                     mandoc_normdate(man, n->string, n->line, n->pos);          else {
         } else {  
                 man->meta.date = mandoc_strdup("");                  man->meta.date = mandoc_strdup("");
                 mandoc_msg(MANDOCERR_DATE_MISSING,                  mandoc_msg(MANDOCERR_DATE_MISSING,
                     n ? n->line : nb->line,                      n == NULL ? nb->line : n->line,
                     n ? n->pos : nb->pos, "TH");                      n == NULL ? nb->pos : n->pos, "TH");
         }          }
   
         /* TITLE MSEC DATE ->OS<- VOL */          /* TITLE MSEC DATE ->OS<- VOL */

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149

CVSweb