[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.42 and 1.45

version 1.42, 2010/05/25 12:44:53 version 1.45, 2010/06/28 14:39:17
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>   * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 31 
Line 31 
 #include "libman.h"  #include "libman.h"
 #include "libmandoc.h"  #include "libmandoc.h"
   
 #define CHKARGS   struct man *m, const struct man_node *n  #define CHKARGS   struct man *m, struct man_node *n
   
 typedef int     (*v_check)(CHKARGS);  typedef int     (*v_check)(CHKARGS);
   
Line 101  static const struct man_valid man_valids[MAN_MAX] = {
Line 101  static const struct man_valid man_valids[MAN_MAX] = {
   
   
 int  int
 man_valid_pre(struct man *m, const struct man_node *n)  man_valid_pre(struct man *m, struct man_node *n)
 {  {
         v_check         *cp;          v_check         *cp;
   
Line 204  check_title(CHKARGS) 
Line 204  check_title(CHKARGS) 
 static int  static int
 check_text(CHKARGS)  check_text(CHKARGS)
 {  {
         const char      *p;          char            *p;
         int              pos, c;          int              pos, c;
   
         assert(n->string);          assert(n->string);
Line 222  check_text(CHKARGS) 
Line 222  check_text(CHKARGS) 
                         if ( ! (MAN_IGN_ESCAPE & m->pflags) && ! c)                          if ( ! (MAN_IGN_ESCAPE & m->pflags) && ! c)
                                 return(c);                                  return(c);
                 }                  }
   
                   /*
                    * FIXME: we absolutely cannot let \b get through or it
                    * will destroy some assumptions in terms of format.
                    */
   
                 if ('\t' == *p || isprint((u_char)*p) || ASCII_HYPH == *p)                  if ('\t' == *p || isprint((u_char)*p) || ASCII_HYPH == *p)
                         continue;                          continue;

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.45

CVSweb