[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.287 and 1.289

version 1.287, 2015/04/19 13:50:26 version 1.289, 2015/04/19 14:25:41
Line 1051  post_defaults(POST_ARGS)
Line 1051  post_defaults(POST_ARGS)
   
         switch (nn->tok) {          switch (nn->tok) {
         case MDOC_Ar:          case MDOC_Ar:
                 mdoc_word_alloc(mdoc, nn->line, nn->pos, "file");                  roff_word_alloc(mdoc, nn->line, nn->pos, "file");
                 mdoc_word_alloc(mdoc, nn->line, nn->pos, "...");                  roff_word_alloc(mdoc, nn->line, nn->pos, "...");
                 break;                  break;
         case MDOC_Pa:          case MDOC_Pa:
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case MDOC_Mt:          case MDOC_Mt:
                 mdoc_word_alloc(mdoc, nn->line, nn->pos, "~");                  roff_word_alloc(mdoc, nn->line, nn->pos, "~");
                 break;                  break;
         default:          default:
                 abort();                  abort();
Line 1076  post_at(POST_ARGS)
Line 1076  post_at(POST_ARGS)
         n = mdoc->last;          n = mdoc->last;
         if (n->child == NULL) {          if (n->child == NULL) {
                 mdoc->next = ROFF_NEXT_CHILD;                  mdoc->next = ROFF_NEXT_CHILD;
                 mdoc_word_alloc(mdoc, n->line, n->pos, "AT&T UNIX");                  roff_word_alloc(mdoc, n->line, n->pos, "AT&T UNIX");
                 mdoc->last = n;                  mdoc->last = n;
                 return;                  return;
         }          }
Line 1269  rewrite_macro2len(char **arg)
Line 1269  rewrite_macro2len(char **arg)
                 return;                  return;
         else if ( ! strcmp(*arg, "Ds"))          else if ( ! strcmp(*arg, "Ds"))
                 width = 6;                  width = 6;
         else if ((tok = mdoc_hash_find(*arg)) == MDOC_MAX)          else if ((tok = mdoc_hash_find(*arg)) == TOKEN_NONE)
                 return;                  return;
         else          else
                 width = macro2len(tok);                  width = macro2len(tok);
Line 1765  post_sh_name(POST_ARGS)
Line 1765  post_sh_name(POST_ARGS)
                                 mandoc_msg(MANDOCERR_NAMESEC_ND,                                  mandoc_msg(MANDOCERR_NAMESEC_ND,
                                     mdoc->parse, n->line, n->pos, NULL);                                      mdoc->parse, n->line, n->pos, NULL);
                         break;                          break;
                 case MDOC_MAX:                  case TOKEN_NONE:
                         if (hasnm)                          if (hasnm)
                                 break;                                  break;
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
Line 2315  post_ex(POST_ARGS)
Line 2315  post_ex(POST_ARGS)
         }          }
   
         mdoc->next = ROFF_NEXT_CHILD;          mdoc->next = ROFF_NEXT_CHILD;
         mdoc_word_alloc(mdoc, n->line, n->pos, mdoc->meta.name);          roff_word_alloc(mdoc, n->line, n->pos, mdoc->meta.name);
         mdoc->last = n;          mdoc->last = n;
 }  }
   

Legend:
Removed from v.1.287  
changed lines
  Added in v.1.289

CVSweb