[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.14 and 1.15

version 1.14, 2009/07/06 22:33:58 version 1.15, 2009/07/08 00:04:10
Line 23 
Line 23 
 #include <string.h>  #include <string.h>
   
 #include "libmdoc.h"  #include "libmdoc.h"
   #include "libmandoc.h"
   
 /* FIXME: .Bl -diag can't have non-text children in HEAD. */  /* FIXME: .Bl -diag can't have non-text children in HEAD. */
 /* TODO: ignoring Pp (it's superfluous in some invocations). */  /* TODO: ignoring Pp (it's superfluous in some invocations). */
Line 698 
Line 699 
 static int  static int
 check_text(struct mdoc *mdoc, int line, int pos, const char *p)  check_text(struct mdoc *mdoc, int line, int pos, const char *p)
 {  {
         size_t           c;          int              c;
   
         for ( ; *p; p++) {          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 ( ! warn_print(mdoc, line, pos))
Line 712 
Line 713 
                 if ('\\' != *p)                  if ('\\' != *p)
                         continue;                          continue;
   
                 c = mdoc_isescape(p);                  c = mandoc_special(p);
                 if (c) {                  if (c) {
                         p += (int)c - 1;                          p += c - 1;
                           pos += c - 1;
                         continue;                          continue;
                 }                  }
                 if ( ! (MDOC_IGN_ESCAPE & mdoc->pflags))                  if ( ! (MDOC_IGN_ESCAPE & mdoc->pflags))

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15