[BACK]Return to mdoc_validate.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mdoc_validate.c between version 1.17 and 1.19

version 1.17, 2009/06/27 09:03:03 version 1.19, 2009/07/04 10:41:29
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 55  enum mwarn {
Line 56  enum mwarn {
         WNOWIDTH,          WNOWIDTH,
         WMISSWIDTH,          WMISSWIDTH,
         WESCAPE,          WESCAPE,
         WDEPCOL,  
         WWRONGMSEC,          WWRONGMSEC,
         WSECOOO,          WSECOOO,
         WSECREP,          WSECREP,
Line 469  pwarn(struct mdoc *m, int line, int pos, enum mwarn ty
Line 469  pwarn(struct mdoc *m, int line, int pos, enum mwarn ty
                 p = "prologue macros out-of-order";                  p = "prologue macros out-of-order";
                 c = WARN_COMPAT;                  c = WARN_COMPAT;
                 break;                  break;
         case (WDEPCOL):  
                 p = "deprecated column argument syntax";  
                 c = WARN_COMPAT;  
                 break;  
         case (WNOWIDTH):          case (WNOWIDTH):
                 p = "superfluous width argument";                  p = "superfluous width argument";
                 break;                  break;
Line 708  check_argv(struct mdoc *m, const struct mdoc_node *n, 
Line 704  check_argv(struct mdoc *m, const struct mdoc_node *n, 
 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 722  check_text(struct mdoc *mdoc, int line, int pos, const
Line 718  check_text(struct mdoc *mdoc, int line, int pos, const
                 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.17  
changed lines
  Added in v.1.19

CVSweb