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

Diff for /mandoc/Attic/private.h between version 1.17 and 1.25

version 1.17, 2008/11/29 16:11:42 version 1.25, 2008/12/03 19:21:58
Line 19 
Line 19 
 #ifndef PRIVATE_H  #ifndef PRIVATE_H
 #define PRIVATE_H  #define PRIVATE_H
   
 /* Input buffer (input read into buffer, then filled when empty). */  
 struct  md_rbuf {  struct  md_rbuf {
         int              fd;            /* Open descriptor. */          int              fd;            /* Open descriptor. */
         char            *name;          /* Name of file. */          char            *name;          /* Name of file. */
Line 28  struct md_rbuf {
Line 27  struct md_rbuf {
         size_t           line;          /* Current line number. */          size_t           line;          /* Current line number. */
 };  };
   
 /* Output buffer (output buffered until full, then flushed). */  
 struct  md_mbuf {  struct  md_mbuf {
         int              fd;            /* Open descriptor. */          int              fd;            /* Open descriptor. */
         char            *name;          /* Name of file. */          char            *name;          /* Name of file. */
Line 139  struct md_mbuf {
Line 137  struct md_mbuf {
 #define ROFF_Oc          99  #define ROFF_Oc          99
 #define ROFF_Bk          100  #define ROFF_Bk          100
 #define ROFF_Ek          101  #define ROFF_Ek          101
 #define ROFF_MAX         102  #define ROFF_Bt          102
   #define ROFF_Hf          103
   #define ROFF_Fr          104
   #define ROFF_Ud          105
   #define ROFF_MAX         106
   
 #define ROFF_Split       0  #define ROFF_Split       0
 #define ROFF_Nosplit     1  #define ROFF_Nosplit     1
Line 213  struct roffcb {
Line 215  struct roffcb {
                         const char *, const char *, char *);                          const char *, const char *, char *);
         int     (*roffhead)(void *);          int     (*roffhead)(void *);
         int     (*rofftail)(void *);          int     (*rofftail)(void *);
           int     (*roffdata)(void *, int, char *);
         int     (*roffin)(void *, int, int *, char **);          int     (*roffin)(void *, int, int *, char **);
         int     (*roffdata)(void *, char *);  
         int     (*roffout)(void *, int);          int     (*roffout)(void *, int);
         int     (*roffblkin)(void *, int, int *, char **);          int     (*roffblkin)(void *, int, int *, char **);
         int     (*roffblkout)(void *, int);          int     (*roffblkout)(void *, int);
         int     (*roffspecial)(void *, int);          int     (*roffblkheadin)(void *, int, int *, char **);
           int     (*roffblkheadout)(void *, int);
           int     (*roffblkbodyin)(void *, int, int *, char **);
           int     (*roffblkbodyout)(void *, int);
           int     (*roffspecial)(void *, int, int *, char **, char **);
 };  };
   
   struct  rofftree;
   
 __BEGIN_DECLS  __BEGIN_DECLS
   
 typedef void  (*(*md_init)(const struct md_args *,  typedef void  (*(*md_init)(const struct md_args *,
Line 228  typedef void  (*(*md_init)(const struct md_args *, 
Line 236  typedef void  (*(*md_init)(const struct md_args *, 
 typedef int     (*md_line)(void *, char *);  typedef int     (*md_line)(void *, char *);
 typedef int     (*md_exit)(void *, int);  typedef int     (*md_exit)(void *, int);
   
 void             *md_init_html4_strict(const struct md_args *,  void             *md_init_html(const struct md_args *,
                         struct md_mbuf *, const struct md_rbuf *);                          struct md_mbuf *, const struct md_rbuf *);
 int               md_line_html4_strict(void *, char *);  int               md_line_html(void *, char *);
 int               md_exit_html4_strict(void *, int);  int               md_exit_html(void *, int);
   
 void             *md_init_valid(const struct md_args *,  void             *md_init_xml(const struct md_args *,
                         struct md_mbuf *, const struct md_rbuf *);                          struct md_mbuf *, const struct md_rbuf *);
 int               md_line_valid(void *, char *);  int               md_line_xml(void *, char *);
 int               md_exit_valid(void *, int);  int               md_exit_xml(void *, int);
   
 int               md_buf_puts(struct md_mbuf *, const char *, size_t);  int               md_buf_puts(struct md_mbuf *, const char *, size_t);
 int               md_buf_putchar(struct md_mbuf *, char);  int               md_buf_putchar(struct md_mbuf *, char);
 int               md_buf_putstring(struct md_mbuf *, const char *);  int               md_buf_putstring(struct md_mbuf *, const char *);
   
 struct  rofftree;  
   
 struct  rofftree *roff_alloc(const struct roffcb *, void *);  struct  rofftree *roff_alloc(const struct roffcb *, void *);
 int               roff_engine(struct rofftree *, char *);  int               roff_engine(struct rofftree *, char *);

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.25

CVSweb