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

Diff for /mandoc/main.c between version 1.155 and 1.156

version 1.155, 2011/03/20 16:02:05 version 1.156, 2011/03/20 16:05:21
Line 54  enum outt {
Line 54  enum outt {
   
 struct  curparse {  struct  curparse {
         struct mparse    *mp;          struct mparse    *mp;
         const char       *file;         /* current file-name */  
         enum mandoclevel  wlevel;       /* ignore messages below this */          enum mandoclevel  wlevel;       /* ignore messages below this */
         int               wstop;        /* stop after a file with a warning */          int               wstop;        /* stop after a file with a warning */
         enum outt         outtype;      /* which output to use */          enum outt         outtype;      /* which output to use */
Line 182  static const char * const mandocerrs[MANDOCERR_MAX] = 
Line 181  static const char * const mandocerrs[MANDOCERR_MAX] = 
         "static buffer exhausted",          "static buffer exhausted",
 };  };
   
 static  void              evt_close(void *, const char *);  
 static  int               evt_open(void *, const char *);  
 static  int               moptions(enum mparset *, char *);  static  int               moptions(enum mparset *, char *);
 static  void              mmsg(enum mandocerr, enum mandoclevel,  static  void              mmsg(enum mandocerr, enum mandoclevel,
                                 const char *, int, int, const char *);                                  const char *, int, int, const char *);
Line 243  main(int argc, char *argv[])
Line 240  main(int argc, char *argv[])
                         /* NOTREACHED */                          /* NOTREACHED */
                 }                  }
   
         curp.mp = mparse_alloc(type, evt_open, evt_close, curp.wlevel, mmsg, &curp);          curp.mp = mparse_alloc(type, curp.wlevel, mmsg, &curp);
   
         argc -= optind;          argc -= optind;
         argv += optind;          argv += optind;
Line 291  usage(void)
Line 288  usage(void)
                         progname);                          progname);
   
         exit((int)MANDOCLEVEL_BADARG);          exit((int)MANDOCLEVEL_BADARG);
 }  
   
 static int  
 evt_open(void *arg, const char *file)  
 {  
   
         evt_close(arg, file);  
         return(1);  
 }  
   
 static void  
 evt_close(void *arg, const char *file)  
 {  
         struct curparse *p;  
   
         p = (struct curparse *)arg;  
         p->file = file;  
 }  }
   
 static void  static void

Legend:
Removed from v.1.155  
changed lines
  Added in v.1.156

CVSweb