[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.81 and 1.82

version 1.81, 2012/06/02 20:16:23 version 1.82, 2012/07/18 16:41:09
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010, 2012 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 541  static int
Line 541  static int
 post_vs(CHKARGS)  post_vs(CHKARGS)
 {  {
   
         /*          if (NULL != n->prev)
          * Don't warn about this because it occurs in pod2man and would                  return(1);
          * cause considerable (unfixable) warnage.  
          */          switch (n->parent->tok) {
         if (NULL == n->prev && MAN_ROOT == n->parent->type)          case (MAN_SH):
                   /* FALLTHROUGH */
           case (MAN_SS):
                   man_nmsg(m, n, MANDOCERR_IGNPAR);
                   /* FALLTHROUGH */
           case (MAN_MAX):
                   /*
                    * Don't warn about this because it occurs in pod2man
                    * and would cause considerable (unfixable) warnage.
                    */
                 man_node_delete(m, n);                  man_node_delete(m, n);
                   break;
           default:
                   break;
           }
   
         return(1);          return(1);
 }  }

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

CVSweb