[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.117 and 1.118

version 1.117, 2015/04/18 16:06:40 version 1.118, 2015/04/19 13:50:26
Line 33 
Line 33 
 #include "roff.h"  #include "roff.h"
 #include "man.h"  #include "man.h"
 #include "libmandoc.h"  #include "libmandoc.h"
   #include "roff_int.h"
 #include "libman.h"  #include "libman.h"
   
 #define CHKARGS   struct roff_man *man, struct roff_node *n  #define CHKARGS   struct roff_man *man, struct roff_node *n
Line 256  check_par(CHKARGS)
Line 257  check_par(CHKARGS)
         switch (n->type) {          switch (n->type) {
         case ROFFT_BLOCK:          case ROFFT_BLOCK:
                 if (0 == n->body->nchild)                  if (0 == n->body->nchild)
                         man_node_delete(man, n);                          roff_node_delete(man, n);
                 break;                  break;
         case ROFFT_BODY:          case ROFFT_BODY:
                 if (0 == n->nchild)                  if (0 == n->nchild)
Line 284  post_IP(CHKARGS)
Line 285  post_IP(CHKARGS)
         switch (n->type) {          switch (n->type) {
         case ROFFT_BLOCK:          case ROFFT_BLOCK:
                 if (0 == n->head->nchild && 0 == n->body->nchild)                  if (0 == n->head->nchild && 0 == n->body->nchild)
                         man_node_delete(man, n);                          roff_node_delete(man, n);
                 break;                  break;
         case ROFFT_BODY:          case ROFFT_BODY:
                 if (0 == n->parent->head->nchild && 0 == n->nchild)                  if (0 == n->parent->head->nchild && 0 == n->nchild)
Line 388  post_TH(CHKARGS)
Line 389  post_TH(CHKARGS)
          * Remove the `TH' node after we've processed it for our           * Remove the `TH' node after we've processed it for our
          * meta-data.           * meta-data.
          */           */
         man_node_delete(man, man->last);          roff_node_delete(man, man->last);
 }  }
   
 static void  static void
Line 509  post_vs(CHKARGS)
Line 510  post_vs(CHKARGS)
                  * Don't warn about this because it occurs in pod2man                   * Don't warn about this because it occurs in pod2man
                  * and would cause considerable (unfixable) warnage.                   * and would cause considerable (unfixable) warnage.
                  */                   */
                 man_node_delete(man, n);                  roff_node_delete(man, n);
                 break;                  break;
         default:          default:
                 break;                  break;

Legend:
Removed from v.1.117  
changed lines
  Added in v.1.118

CVSweb