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

Diff for /mandoc/libmdoc.h between version 1.47 and 1.49

version 1.47, 2010/05/15 16:24:37 version 1.49, 2010/05/17 23:57:06
Line 26  enum mdoc_next {
Line 26  enum mdoc_next {
   
 struct  mdoc {  struct  mdoc {
         void             *data;          void             *data;
         struct mdoc_cb    cb;          mandocmsg         msg;
         int               flags;          int               flags;
 #define MDOC_HALT        (1 << 0) /* error in parse: halt */  #define MDOC_HALT        (1 << 0) /* error in parse: halt */
 #define MDOC_LITERAL     (1 << 1) /* in a literal scope */  #define MDOC_LITERAL     (1 << 1) /* in a literal scope */
Line 142  extern const struct mdoc_macro *const mdoc_macros;
Line 142  extern const struct mdoc_macro *const mdoc_macros;
   
 __BEGIN_DECLS  __BEGIN_DECLS
   
 #define           mdoc_perr(m, l, p, t) \  #define           mdoc_pmsg(m, l, p, t) \
                   mdoc_err((m), (l), (p), 1, (t))                    (*(m)->msg)((t), (m)->data, (l), (p), NULL)
 #define           mdoc_pwarn(m, l, p, t) \  #define           mdoc_nmsg(m, n, t) \
                   mdoc_err((m), (l), (p), 0, (t))                    (*(m)->msg)((t), (m)->data, (n)->line, (n)->pos, NULL)
 #define           mdoc_nerr(m, n, t) \  int               mdoc_vmsg(struct mdoc *, enum mandocerr,
                   mdoc_err((m), (n)->line, (n)->pos, 1, (t))                          int, int, const char *, ...);
 #define           mdoc_nwarn(m, n, t) \  
                   mdoc_err((m), (n)->line, (n)->pos, 0, (t))  
   
 int               mdoc_err(struct mdoc *, int, int, int, enum merr);  
 int               mdoc_verr(struct mdoc *, int, int, const char *, ...);  
 int               mdoc_vwarn(struct mdoc *, int, int, const char *, ...);  
   
 int               mdoc_macro(MACRO_PROT_ARGS);  int               mdoc_macro(MACRO_PROT_ARGS);
 int               mdoc_word_alloc(struct mdoc *,  int               mdoc_word_alloc(struct mdoc *,
                         int, int, const char *);                          int, int, const char *);
Line 184  int    mdoc_valid_pre(struct mdoc *, 
Line 177  int    mdoc_valid_pre(struct mdoc *, 
                         const struct mdoc_node *);                          const struct mdoc_node *);
 int               mdoc_valid_post(struct mdoc *);  int               mdoc_valid_post(struct mdoc *);
 int               mdoc_action_pre(struct mdoc *,  int               mdoc_action_pre(struct mdoc *,
                         const struct mdoc_node *);                          struct mdoc_node *);
 int               mdoc_action_post(struct mdoc *);  int               mdoc_action_post(struct mdoc *);
 enum margverr     mdoc_argv(struct mdoc *, int, enum mdoct,  enum margverr     mdoc_argv(struct mdoc *, int, enum mdoct,
                         struct mdoc_arg **, int *, char *);                          struct mdoc_arg **, int *, char *);

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.49

CVSweb