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

Diff for /mandoc/libmdoc.h between version 1.7 and 1.8

version 1.7, 2009/06/10 20:18:43 version 1.8, 2009/06/15 09:55:43
Line 55  struct mdoc_macro {
Line 55  struct mdoc_macro {
         /* Reserved words in arguments treated as text. */          /* Reserved words in arguments treated as text. */
 };  };
   
 #define mdoc_nwarn(mdoc, node, type, fmt, ...) \  
                   mdoc_vwarn((mdoc), (node)->line, \  
                   (node)->pos, (type), (fmt), ##__VA_ARGS__)  
   
 #define mdoc_nerr(mdoc, node, fmt, ...) \  
                   mdoc_verr((mdoc), (node)->line, \  
                   (node)->pos, (fmt), ##__VA_ARGS__)  
   
 #define mdoc_warn(mdoc, type, fmt, ...) \  
                   mdoc_vwarn((mdoc), (mdoc)->last->line, \  
                   (mdoc)->last->pos, (type), (fmt), ##__VA_ARGS__)  
   
 #define mdoc_err(mdoc, fmt, ...) \  
                   mdoc_verr((mdoc), (mdoc)->last->line, \  
                   (mdoc)->last->pos, (fmt), ##__VA_ARGS__)  
   
 #define mdoc_msg(mdoc, fmt, ...) \  
                   mdoc_vmsg((mdoc), (mdoc)->last->line, \  
                   (mdoc)->last->pos, (fmt), ##__VA_ARGS__)  
   
 #define mdoc_pmsg(mdoc, line, pos, fmt, ...) \  
                   mdoc_vmsg((mdoc), (line), \  
                   (pos), (fmt), ##__VA_ARGS__)  
   
 #define mdoc_pwarn(mdoc, line, pos, type, fmt, ...) \  
                   mdoc_vwarn((mdoc), (line), \  
                   (pos), (type), (fmt), ##__VA_ARGS__)  
   
 #define mdoc_perr(mdoc, line, pos, fmt, ...) \  
                   mdoc_verr((mdoc), (line), \  
                   (pos), (fmt), ##__VA_ARGS__)  
   
 extern  const struct mdoc_macro *const mdoc_macros;  extern  const struct mdoc_macro *const mdoc_macros;
   
 __BEGIN_DECLS  __BEGIN_DECLS
   
   /*
    * When GCC2 is deprecated, most of these can be reverted to #define
    * as mdoc_vmsg using __VA_ARGS__.  Until then, use real functions.
    */
 int               mdoc_vwarn(struct mdoc *, int, int,  int               mdoc_vwarn(struct mdoc *, int, int,
                         enum mdoc_warn, const char *, ...);                          enum mdoc_warn, const char *, ...);
 void              mdoc_vmsg(struct mdoc *, int, int,  void              mdoc_vmsg(struct mdoc *, int, int,
                         const char *, ...);                          const char *, ...);
 int               mdoc_verr(struct mdoc *, int, int,  int               mdoc_verr(struct mdoc *, int, int,
                         const char *, ...);                          const char *, ...);
   int               mdoc_nwarn(struct mdoc *, const struct mdoc_node *,
                           enum mdoc_warn, const char *, ...);
   int               mdoc_nerr(struct mdoc *, const struct mdoc_node *,
                           const char *, ...);
   int               mdoc_warn(struct mdoc *, enum mdoc_warn, const char *, ...);
   int               mdoc_err(struct mdoc *, const char *, ...);
   void              mdoc_msg(struct mdoc *, const char *, ...);
   void              mdoc_pmsg(struct mdoc *, int, int, const char *, ...);
   int               mdoc_pwarn(struct mdoc *, int, int,
                           enum mdoc_warn,const char *, ...);
   int               mdoc_perr(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 *);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

CVSweb