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

Diff for /mandoc/main.c between version 1.41 and 1.42

version 1.41, 2009/07/28 10:15:12 version 1.42, 2009/09/16 09:41:24
Line 40  extern int    getsubopt(char **, char * const *, char 
Line 40  extern int    getsubopt(char **, char * const *, char 
 # endif  # endif
 #endif  #endif
   
 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 86  struct curparse {
Line 86  struct curparse {
 };  };
   
 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 450  fdesc(struct buf *blk, struct buf *ln, struct curparse
Line 450  fdesc(struct buf *blk, struct buf *ln, struct curparse
         /* 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.41  
changed lines
  Added in v.1.42

CVSweb