[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/main.c between version 1.15 and 1.16

version 1.15, 2009/08/22 17:21:23 version 1.16, 2009/09/21 20:57:57
Line 27 
Line 27 
 #include "mdoc.h"  #include "mdoc.h"
 #include "man.h"  #include "man.h"
   
 typedef int             (*out_mdoc)(void *, const struct mdoc *);  typedef void            (*out_mdoc)(void *, const struct mdoc *);
 typedef int             (*out_man)(void *, const struct man *);  typedef void            (*out_man)(void *, const struct man *);
 typedef void            (*out_free)(void *);  typedef void            (*out_free)(void *);
   
 struct  buf {  struct  buf {
Line 73 
Line 73 
 };  };
   
 extern  void             *ascii_alloc(void);  extern  void             *ascii_alloc(void);
 extern  int               tree_mdoc(void *, const struct mdoc *);  extern  void              tree_mdoc(void *, const struct mdoc *);
 extern  int               tree_man(void *, const struct man *);  extern  void              tree_man(void *, const struct man *);
 extern  int               terminal_mdoc(void *, const struct mdoc *);  extern  void              terminal_mdoc(void *, const struct mdoc *);
 extern  int               terminal_man(void *, const struct man *);  extern  void              terminal_man(void *, const struct man *);
 extern  void              terminal_free(void *);  extern  void              terminal_free(void *);
   
 static  int               foptions(int *, char *);  static  int               foptions(int *, char *);
Line 437 
Line 437 
         /* Execute the out device, if it exists. */          /* Execute the out device, if it exists. */
   
         if (man && curp->outman)          if (man && curp->outman)
                 if ( ! (*curp->outman)(curp->outdata, man))                  (*curp->outman)(curp->outdata, man);
                         return(-1);  
         if (mdoc && curp->outmdoc)          if (mdoc && curp->outmdoc)
                 if ( ! (*curp->outmdoc)(curp->outdata, mdoc))                  (*curp->outmdoc)(curp->outdata, mdoc);
                         return(-1);  
   
         return(1);          return(1);
 }  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16