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

Diff for /mandoc/Attic/private.h between version 1.4 and 1.42

version 1.4, 2008/11/24 14:24:55 version 1.42, 2008/12/15 03:13:01
Line 19 
Line 19 
 #ifndef PRIVATE_H  #ifndef PRIVATE_H
 #define PRIVATE_H  #define PRIVATE_H
   
 struct  md_rbuf {  #include "mdoc.h"
         int              fd;  
         char            *name;  struct  mdoc {
         char            *buf;          void             *data;
         size_t           bufsz;          struct mdoc_cb    cb;
         size_t           line;          void             *htab;
           struct mdoc_node *last;
           struct mdoc_node *first;
   
           enum mdoc_sec     sec_lastn;
           enum mdoc_sec     sec_last;
 };  };
   
 struct  md_mbuf {  struct  mdoc_macro {
         int              fd;          int     (*fp)(struct mdoc *, int, int, int *, char *);
         char            *name;          int       flags;
         char            *buf;  #define MDOC_CALLABLE   (1 << 0)
         size_t           bufsz;  #define MDOC_EXPLICIT   (1 << 1)
         size_t           pos;  
 };  };
   
   extern  const struct mdoc_macro *const mdoc_macros;
   
 __BEGIN_DECLS  __BEGIN_DECLS
   
 typedef void  (*(*md_init)(const struct md_args *,  int               mdoc_err(struct mdoc *, int, int, enum mdoc_err);
                         struct md_mbuf *, const struct md_rbuf *));  int               mdoc_warn(struct mdoc *, int, int, enum mdoc_warn);
 typedef int     (*md_line)(void *, char *, size_t);  void              mdoc_msg(struct mdoc *, int, const char *, ...);
 typedef int     (*md_exit)(void *, int);  int               mdoc_macro(struct mdoc *, int, int, int *, char *);
   int               mdoc_find(const struct mdoc *, const char *);
 void             *md_init_html4_strict(const struct md_args *,  void              mdoc_word_alloc(struct mdoc *, int, const char *);
                         struct md_mbuf *, const struct md_rbuf *);  void              mdoc_elem_alloc(struct mdoc *, int, int,
 int               md_line_html4_strict(void *, char *, size_t);                          size_t, const struct mdoc_arg *,
 int               md_exit_html4_strict(void *, int);                          size_t, const char **);
   void              mdoc_block_alloc(struct mdoc *, int, int,
 void             *md_init_dummy(const struct md_args *,                          size_t, const struct mdoc_arg *);
                         struct md_mbuf *, const struct md_rbuf *);  void              mdoc_head_alloc(struct mdoc *,
 int               md_line_dummy(void *, char *, size_t);                          int, int, size_t, const char **);
 int               md_exit_dummy(void *, int);  void              mdoc_body_alloc(struct mdoc *, int, int);
   void              mdoc_node_free(struct mdoc_node *);
 int               md_buf_puts(struct md_mbuf *, const char *, size_t);  void              mdoc_sibling(struct mdoc *, int, struct mdoc_node **,
 int               md_buf_putchar(struct md_mbuf *, char);                          struct mdoc_node **, struct mdoc_node *);
 int               md_buf_putstring(struct md_mbuf *, const char *);  void             *mdoc_hash_alloc(void);
   int               mdoc_hash_find(const void *, const char *);
 struct  rofftree;  void              mdoc_hash_free(void *);
   int               mdoc_isdelim(const char *);
 struct  rofftree *roff_alloc(const struct md_args *,  
                         struct md_mbuf *, const struct md_rbuf *);  
 int               roff_engine(struct rofftree *, char *, size_t);  
 int               roff_free(struct rofftree *, int);  
   
 __END_DECLS  __END_DECLS
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.42

CVSweb