[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.65 and 1.67

version 1.65, 2011/03/20 16:02:05 version 1.67, 2011/03/22 15:30:30
Line 30 
Line 30 
 #include <string.h>  #include <string.h>
 #include <time.h>  #include <time.h>
   
   #include "man.h"
 #include "mandoc.h"  #include "mandoc.h"
 #include "libman.h"  #include "libman.h"
 #include "libmandoc.h"  #include "libmandoc.h"
Line 322  check_sec(CHKARGS)
Line 323  check_sec(CHKARGS)
                 man_nmsg(m, n, MANDOCERR_SYNTARGCOUNT);                  man_nmsg(m, n, MANDOCERR_SYNTARGCOUNT);
                 return(0);                  return(0);
         } else if (MAN_BODY == n->type && 0 == n->nchild)          } else if (MAN_BODY == n->type && 0 == n->nchild)
                 man_nmsg(m, n, MANDOCERR_NOBODY);                  mandoc_msg(MANDOCERR_ARGCWARN, m->parse, n->line,
                                   n->pos, "want children (have none)");
   
         return(1);          return(1);
 }  }
Line 333  check_part(CHKARGS)
Line 335  check_part(CHKARGS)
 {  {
   
         if (MAN_BODY == n->type && 0 == n->nchild)          if (MAN_BODY == n->type && 0 == n->nchild)
                 man_nmsg(m, n, MANDOCERR_NOBODY);                  mandoc_msg(MANDOCERR_ARGCWARN, m->parse, n->line,
                                   n->pos, "want children (have none)");
   
         return(1);          return(1);
 }  }

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.67

CVSweb