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

Diff for /mandoc/main.c between version 1.36 and 1.37

version 1.36, 2009/07/06 09:34:29 version 1.37, 2009/07/06 13:08:12
Line 96  static int    toptions(enum outt *, char *);
Line 96  static int    toptions(enum outt *, char *);
 static  int               moptions(enum intt *, char *);  static  int               moptions(enum intt *, char *);
 static  int               woptions(int *, char *);  static  int               woptions(int *, char *);
 static  int               merr(void *, int, int, const char *);  static  int               merr(void *, int, int, const char *);
 static  int               manwarn(void *, int, int, const char *);  static  int               mwarn(void *, int, int, const char *);
 static  int               mdocwarn(void *, int, int, const char *);  
 static  int               ffile(struct buf *, struct buf *,  static  int               ffile(struct buf *, struct buf *,
                                 const char *, struct curparse *);                                  const char *, struct curparse *);
 static  int               fdesc(struct buf *, struct buf *,  static  int               fdesc(struct buf *, struct buf *,
Line 225  man_init(struct curparse *curp)
Line 224  man_init(struct curparse *curp)
         struct man_cb    mancb;          struct man_cb    mancb;
   
         mancb.man_err = merr;          mancb.man_err = merr;
         mancb.man_warn = manwarn;          mancb.man_warn = mwarn;
   
         /* Defaults from mandoc.1. */          /* Defaults from mandoc.1. */
   
Line 253  mdoc_init(struct curparse *curp)
Line 252  mdoc_init(struct curparse *curp)
         struct mdoc_cb   mdoccb;          struct mdoc_cb   mdoccb;
   
         mdoccb.mdoc_err = merr;          mdoccb.mdoc_err = merr;
         mdoccb.mdoc_warn = mdocwarn;          mdoccb.mdoc_warn = mwarn;
   
         /* Defaults from mandoc.1. */          /* Defaults from mandoc.1. */
   
Line 635  merr(void *arg, int line, int col, const char *msg)
Line 634  merr(void *arg, int line, int col, const char *msg)
   
   
 static int  static int
 mdocwarn(void *arg, int line, int col, const char *msg)  mwarn(void *arg, int line, int col, const char *msg)
 {  {
         struct curparse *curp;          struct curparse *curp;
   
Line 654  mdocwarn(void *arg, int line, int col, const char *msg
Line 653  mdocwarn(void *arg, int line, int col, const char *msg
         return(0);          return(0);
 }  }
   
   
 static int  
 manwarn(void *arg, int line, int col, const char *msg)  
 {  
         struct curparse *curp;  
   
         curp = (struct curparse *)arg;  
   
         if ( ! (curp->wflags & WARN_WALL))  
                 return(1);  
   
         warnx("%s:%d: syntax warning: %s (column %d)",  
                         curp->file, line, msg, col);  
   
         if ( ! (curp->wflags & WARN_WERR))  
                 return(1);  
   
         warnx("considering warnings as errors");  
         return(0);  
 }  

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

CVSweb