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

Diff for /mandoc/roff_validate.c between version 1.6 and 1.10

version 1.6, 2017/06/04 22:44:15 version 1.10, 2018/08/10 20:40:45
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2010, 2017 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 18 
Line 18 
   
 #include <assert.h>  #include <assert.h>
 #include <stddef.h>  #include <stddef.h>
   #include <string.h>
   
 #include "mandoc.h"  #include "mandoc.h"
 #include "roff.h"  #include "roff.h"
Line 32  static void   roff_valid_ft(ROFF_VALID_ARGS);
Line 33  static void   roff_valid_ft(ROFF_VALID_ARGS);
   
 static  const roff_valid_fp roff_valids[ROFF_MAX] = {  static  const roff_valid_fp roff_valids[ROFF_MAX] = {
         NULL,  /* br */          NULL,  /* br */
           NULL,  /* ce */
         roff_valid_ft,  /* ft */          roff_valid_ft,  /* ft */
         NULL,  /* ll */          NULL,  /* ll */
         NULL,  /* mc */          NULL,  /* mc */
           NULL,  /* po */
           NULL,  /* rj */
         NULL,  /* sp */          NULL,  /* sp */
         NULL,  /* ta */          NULL,  /* ta */
         NULL,  /* ti */          NULL,  /* ti */
Line 55  roff_validate(struct roff_man *man)
Line 59  roff_validate(struct roff_man *man)
 static void  static void
 roff_valid_ft(ROFF_VALID_ARGS)  roff_valid_ft(ROFF_VALID_ARGS)
 {  {
         char    *cp;          const char              *cp;
   
         if (n->child == NULL) {          if (n->child == NULL) {
                 man->next = ROFF_NEXT_CHILD;                  man->next = ROFF_NEXT_CHILD;
Line 81  roff_valid_ft(ROFF_VALID_ARGS)
Line 85  roff_valid_ft(ROFF_VALID_ARGS)
                         return;                          return;
                 break;                  break;
         case 'C':          case 'C':
                 if (cp[1] == 'W' && cp[2] == '\0')                  if (cp[1] != '\0' && cp[2] == '\0' &&
                       strchr("BIRW", cp[1]) != NULL)
                         return;                          return;
                 break;                  break;
         default:          default:

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.10

CVSweb