[BACK]Return to mdoc_validate.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/mdoc_validate.c between version 1.48 and 1.49

version 1.48, 2010/04/07 23:15:05 version 1.49, 2010/05/13 20:34:29
Line 56 
Line 56 
 static  int      warn_child_gt(struct mdoc *, const char *, int);  static  int      warn_child_gt(struct mdoc *, const char *, int);
 static  int      err_child_eq(struct mdoc *, const char *, int);  static  int      err_child_eq(struct mdoc *, const char *, int);
 static  int      warn_child_eq(struct mdoc *, const char *, int);  static  int      warn_child_eq(struct mdoc *, const char *, int);
 static  int      warn_print(struct mdoc *, int, int);  
 static  int      warn_count(struct mdoc *, const char *,  static  int      warn_count(struct mdoc *, const char *,
                         int, const char *, int);                          int, const char *, int);
 static  int      err_count(struct mdoc *, const char *,  static  int      err_count(struct mdoc *, const char *,
Line 322 
Line 321 
 }  }
   
   
 static int  
 warn_print(struct mdoc *m, int ln, int pos)  
 {  
   
         if (MDOC_IGN_CHARS & m->pflags)  
                 return(mdoc_pwarn(m, ln, pos, EPRINT));  
         return(mdoc_perr(m, ln, pos, EPRINT));  
 }  
   
   
 static inline int  static inline int
 warn_count(struct mdoc *m, const char *k,  warn_count(struct mdoc *m, const char *k,
                 int want, const char *v, int has)                  int want, const char *v, int has)
Line 517 
Line 506 
         for ( ; *p; p++, pos++) {          for ( ; *p; p++, pos++) {
                 if ('\t' == *p) {                  if ('\t' == *p) {
                         if ( ! (MDOC_LITERAL & mdoc->flags))                          if ( ! (MDOC_LITERAL & mdoc->flags))
                                 if ( ! warn_print(mdoc, line, pos))                                  if ( ! mdoc_pwarn(mdoc, line, pos, EPRINT))
                                         return(0);                                          return(0);
                 } else if ( ! isprint((u_char)*p))                  } else if ( ! isprint((u_char)*p))
                         if ( ! warn_print(mdoc, line, pos))                          if ( ! mdoc_pwarn(mdoc, line, pos, EPRINT))
                                 return(0);                                  return(0);
   
                 if ('\\' != *p)                  if ('\\' != *p)

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49