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

Diff for /mandoc/libmdoc.h between version 1.78 and 1.81

version 1.78, 2011/12/02 01:37:14 version 1.81, 2012/11/17 00:26:33
Line 24  enum mdoc_next {
Line 24  enum mdoc_next {
   
 struct  mdoc {  struct  mdoc {
         struct mparse    *parse; /* parse pointer */          struct mparse    *parse; /* parse pointer */
           char             *defos; /* default argument for .Os */
         int               flags; /* parse flags */          int               flags; /* parse 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 42  struct mdoc {
Line 43  struct mdoc {
         struct roff      *roff;          struct roff      *roff;
 };  };
   
 #define MACRO_PROT_ARGS struct mdoc *m, \  #define MACRO_PROT_ARGS struct mdoc *mdoc, \
                         enum mdoct tok, \                          enum mdoct tok, \
                         int line, \                          int line, \
                         int ppos, \                          int ppos, \
Line 99  extern const struct mdoc_macro *const mdoc_macros;
Line 100  extern const struct mdoc_macro *const mdoc_macros;
   
 __BEGIN_DECLS  __BEGIN_DECLS
   
 #define           mdoc_pmsg(m, l, p, t) \  #define           mdoc_pmsg(mdoc, l, p, t) \
                   mandoc_msg((t), (m)->parse, (l), (p), NULL)                    mandoc_msg((t), (mdoc)->parse, (l), (p), NULL)
 #define           mdoc_nmsg(m, n, t) \  #define           mdoc_nmsg(mdoc, n, t) \
                   mandoc_msg((t), (m)->parse, (n)->line, (n)->pos, NULL)                    mandoc_msg((t), (mdoc)->parse, (n)->line, (n)->pos, NULL)
 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 113  int    mdoc_block_alloc(struct mdoc *, int, int, 
Line 114  int    mdoc_block_alloc(struct mdoc *, int, int, 
 int               mdoc_head_alloc(struct mdoc *, int, int, enum mdoct);  int               mdoc_head_alloc(struct mdoc *, int, int, enum mdoct);
 int               mdoc_tail_alloc(struct mdoc *, int, int, enum mdoct);  int               mdoc_tail_alloc(struct mdoc *, int, int, enum mdoct);
 int               mdoc_body_alloc(struct mdoc *, int, int, enum mdoct);  int               mdoc_body_alloc(struct mdoc *, int, int, enum mdoct);
 int               mdoc_endbody_alloc(struct mdoc *m, int line, int pos,  int               mdoc_endbody_alloc(struct mdoc *, int, int, enum mdoct,
                         enum mdoct tok, struct mdoc_node *body,                          struct mdoc_node *, enum mdoc_endbody);
                         enum mdoc_endbody end);  
 void              mdoc_node_delete(struct mdoc *, struct mdoc_node *);  void              mdoc_node_delete(struct mdoc *, struct mdoc_node *);
   int               mdoc_node_relink(struct mdoc *, struct mdoc_node *);
 void              mdoc_hash_init(void);  void              mdoc_hash_init(void);
 enum mdoct        mdoc_hash_find(const char *);  enum mdoct        mdoc_hash_find(const char *);
 const char       *mdoc_a2att(const char *);  const char       *mdoc_a2att(const char *);

Legend:
Removed from v.1.78  
changed lines
  Added in v.1.81

CVSweb