[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.74 and 1.76

version 1.74, 2011/09/04 09:58:40 version 1.76, 2011/10/16 12:20:34
Line 52  static int   check_le5(CHKARGS);
Line 52  static int   check_le5(CHKARGS);
 static  int       check_par(CHKARGS);  static  int       check_par(CHKARGS);
 static  int       check_part(CHKARGS);  static  int       check_part(CHKARGS);
 static  int       check_root(CHKARGS);  static  int       check_root(CHKARGS);
   static  void      check_text(CHKARGS);
   
 static  int       post_AT(CHKARGS);  static  int       post_AT(CHKARGS);
 static  int       post_vs(CHKARGS);  static  int       post_vs(CHKARGS);
Line 152  man_valid_post(struct man *m)
Line 153  man_valid_post(struct man *m)
         m->last->flags |= MAN_VALID;          m->last->flags |= MAN_VALID;
   
         switch (m->last->type) {          switch (m->last->type) {
           case (MAN_TEXT):
                   check_text(m, m->last);
                   return(1);
         case (MAN_ROOT):          case (MAN_ROOT):
                 return(check_root(m, m->last));                  return(check_root(m, m->last));
         case (MAN_TEXT):  
                 /* FALLTHROUGH */  
         case (MAN_EQN):          case (MAN_EQN):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (MAN_TBL):          case (MAN_TBL):
Line 206  check_root(CHKARGS) 
Line 208  check_root(CHKARGS) 
         return(1);          return(1);
 }  }
   
   static void
   check_text(CHKARGS)
   {
           char            *cp, *p;
   
           if (MAN_LITERAL & m->flags)
                   return;
   
           cp = n->string;
           for (p = cp; NULL != (p = strchr(p, '\t')); p++)
                   man_pmsg(m, n->line, (int)(p - cp), MANDOCERR_BADTAB);
   }
   
 #define INEQ_DEFINE(x, ineq, name) \  #define INEQ_DEFINE(x, ineq, name) \
 static int \  static int \
 check_##name(CHKARGS) \  check_##name(CHKARGS) \
Line 459  post_UC(CHKARGS)
Line 474  post_UC(CHKARGS)
         const char      *p, *s;          const char      *p, *s;
   
         n = n->child;          n = n->child;
         n = m->last->child;  
   
         if (NULL == n || MAN_TEXT != n->type)          if (NULL == n || MAN_TEXT != n->type)
                 p = bsd_versions[0];                  p = bsd_versions[0];

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.76

CVSweb