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

Diff for /mandoc/Attic/mdoc_action.c between version 1.20 and 1.21

version 1.20, 2009/06/25 08:42:06 version 1.21, 2009/07/06 09:21:24
Line 289  static int
Line 289  static int
 pwarn(struct mdoc *m, int line, int pos, enum mwarn type)  pwarn(struct mdoc *m, int line, int pos, enum mwarn type)
 {  {
         char            *p;          char            *p;
         int              c;  
   
         p = NULL;          p = NULL;
         c = WARN_SYNTAX;  
         switch (type) {          switch (type) {
         case (WBADSEC):          case (WBADSEC):
                 p = "inappropriate document section in manual section";                  p = "inappropriate document section in manual section";
                 c = WARN_COMPAT;  
                 break;                  break;
         case (WNOWIDTH):          case (WNOWIDTH):
                 p = "cannot determine default width";                  p = "cannot determine default width";
Line 305  pwarn(struct mdoc *m, int line, int pos, enum mwarn ty
Line 303  pwarn(struct mdoc *m, int line, int pos, enum mwarn ty
                 p = "malformed date syntax";                  p = "malformed date syntax";
                 break;                  break;
         }          }
   
         assert(p);          assert(p);
         return(mdoc_pwarn(m, line, pos, c, p));          return(mdoc_pwarn(m, line, pos, p));
 }  }
   
   

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

CVSweb