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

Diff for /mandoc/Attic/libmdocml.h between version 1.2 and 1.11

version 1.2, 2008/11/22 18:34:06 version 1.11, 2008/12/03 14:39:59
Line 21 
Line 21 
   
 #include <sys/types.h>  #include <sys/types.h>
   
 struct  md_rbuf {  struct  md_params_xml {
         int              fd;          int              dummy;
         const char      *name;  
         char            *buf;  
         size_t           bufsz;  
         size_t           line;  
 };  };
   
 struct  md_mbuf {  struct  md_params_html {
         int              fd;          int              dummy;
         const char      *name;  
         char            *buf;  
         size_t           bufsz;  
         size_t           pos;  
 };  };
   
   union   md_params {
           struct md_params_xml xml;
           struct md_params_html html;
   };
   
 enum    md_type {  enum    md_type {
         MD_DUMMY          MD_XML,                 /* XML. */
           MD_HTML                 /* HTML4.01-strict. */
 };  };
   
   struct  md_args {
           union md_params  params;/* Parameters for parser. */
           enum md_type     type;  /* Type of parser. */
   
           int              warnings;
   #define MD_WARN_ALL     (1 << 0)
           int              verbosity;
   };
   
   struct  md_buf {
           int              fd;    /* Open file descriptor. */
           char            *name;  /* Name of file/socket/whatever. */
           char            *buf;   /* Buffer for storing data. */
           size_t           bufsz; /* Size of buf. */
   };
   
 __BEGIN_DECLS  __BEGIN_DECLS
   
 int     md_run(enum md_type, struct md_mbuf *, struct md_rbuf *);  /* Run the parser over prepared input and output buffers.  Returns -1 on
    * failure and 0 on success.
    */
   int     md_run(const struct md_args *,
                   const struct md_buf *, const struct md_buf *);
   
 __END_DECLS  __END_DECLS
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.11

CVSweb