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

Diff for /mandoc/libmdoc.h between version 1.12 and 1.13

version 1.12, 2009/07/06 09:21:24 version 1.13, 2009/07/06 13:04:52
Line 41  struct mdoc {
Line 41  struct mdoc {
         enum mdoc_sec     lastsec;          enum mdoc_sec     lastsec;
 };  };
   
   enum    merr {
           ETAILWS,
           ECOLEMPTY,
           EARGVPARM,
           EQUOTPARM,
           EQUOTTERM,
           EMALLOC,
           EARGVAL,
           ENOCALL,
           EBODYPROL,
           EPROLBODY,
           ESPACE,
           ETEXTPROL,
           ENOBLANK,
           ETOOLONG,
           EESCAPE,
           EPRINT,
           ENODAT,
           ENOPROLOGUE,
           ELINE,
           EATT,
           ENAME,
           ELISTTYPE,
           EDISPTYPE,
           EMULTIDISP,
           ESECNAME,
           EMULTILIST,
           EARGREP,
           EBOOL,
           ECOLMIS,
           ENESTDISP,
           EMISSWIDTH,
           EWRONGMSEC,
           ESECOOO,
           ESECREP,
           EBADSTAND,
           ENAMESECINC,
           ENOMULTILINE,
           EMULTILINE,
           ENOLINE,
           EPROLOOO,
           EPROLREP,
           EBADMSEC,
           EFONT,
           EBADDATE,
           ENOWIDTH,
           EBADSEC,
           EUTSNAME,
           ENUMFMT,
           EOBS,
           EMACPARM,
           EIMPBRK,
           EIGNE,
           EOPEN,
           EQUOT,
           ENOCTX,
           ENOPARMS
   };
   
 #define MACRO_PROT_ARGS struct mdoc *mdoc, int tok, int line, \  #define MACRO_PROT_ARGS struct mdoc *mdoc, int tok, int line, \
                         int ppos, int *pos, char *buf                          int ppos, int *pos, char *buf
Line 60  extern const struct mdoc_macro *const mdoc_macros;
Line 118  extern const struct mdoc_macro *const mdoc_macros;
   
 __BEGIN_DECLS  __BEGIN_DECLS
   
 /*  #define           mdoc_perr(m, l, p, t) \
  * When GCC2 is deprecated, most of these can be reverted to #define                    mdoc_err((m), (l), (p), 1, (t))
  * as mdoc_vXXX using __VA_ARGS__.  Until then, use real functions.  #define           mdoc_pwarn(m, l, p, t) \
  */                    mdoc_err((m), (l), (p), 0, (t))
 int               mdoc_vwarn(struct mdoc *, int, int, const char *, ...);  #define           mdoc_nerr(m, n, t) \
                     mdoc_err((m), (n)->line, (n)->pos, 0, (t))
   #define           mdoc_nwarn(m, n, t) \
                     mdoc_err((m), (n)->line, (n)->pos, 1, (t))
   
   int               mdoc_err(struct mdoc *, int, int, int, enum merr);
 int               mdoc_verr(struct mdoc *, int, int, const char *, ...);  int               mdoc_verr(struct mdoc *, int, int, const char *, ...);
 int               mdoc_nerr(struct mdoc *, const struct mdoc_node *,  int               mdoc_vwarn(struct mdoc *, int, int, const char *, ...);
                         const char *, ...);  
 int               mdoc_warn(struct mdoc *, const char *, ...);  
 int               mdoc_err(struct mdoc *, const char *, ...);  
 int               mdoc_pwarn(struct mdoc *, int, int, 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.12  
changed lines
  Added in v.1.13

CVSweb