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

Diff for /mandoc/libman.h between version 1.21 and 1.26

version 1.21, 2009/09/16 14:40:56 version 1.26, 2010/03/23 21:50:43
Line 30  struct man {
Line 30  struct man {
         int              pflags;          int              pflags;
         int              flags;          int              flags;
 #define MAN_HALT        (1 << 0)  #define MAN_HALT        (1 << 0)
 #define MAN_ELINE       (1 << 1)        /* Next-line element scope. */  #define MAN_ELINE       (1 << 1) /* Next-line element scope. */
 #define MAN_BLINE       (1 << 2)        /* Next-line block scope. */  #define MAN_BLINE       (1 << 2) /* Next-line block scope. */
 #define MAN_LITERAL     (1 << 3)        /* Literal input. */  #define MAN_ILINE       (1 << 3) /* Ignored in next-line scope. */
   #define MAN_LITERAL     (1 << 4) /* Literal input. */
         enum man_next    next;          enum man_next    next;
         struct man_node *last;          struct man_node *last;
         struct man_node *first;          struct man_node *first;
Line 41  struct man {
Line 42  struct man {
   
 enum    merr {  enum    merr {
         WNPRINT = 0,          WNPRINT = 0,
         WNMEM,  
         WMSEC,          WMSEC,
         WDATE,          WDATE,
         WLNSCOPE,          WLNSCOPE,
           WLNSCOPE2,
         WTSPACE,          WTSPACE,
         WTQUOTE,          WTQUOTE,
         WNODATA,          WNODATA,
Line 54  enum merr {
Line 55  enum merr {
         WHEADARGS,          WHEADARGS,
         WBODYARGS,          WBODYARGS,
         WNHEADARGS,          WNHEADARGS,
         WMACRO,  
         WMACROFORM,          WMACROFORM,
         WEXITSCOPE,          WEXITSCOPE,
         WNOSCOPE,          WNOSCOPE,
Line 63  enum merr {
Line 63  enum merr {
         WERRMAX          WERRMAX
 };  };
   
 #define MACRO_PROT_ARGS   struct man *m, int tok, int line, \  #define MACRO_PROT_ARGS   struct man *m, enum mant tok, int line, \
                           int ppos, int *pos, char *buf                            int ppos, int *pos, char *buf
   
 struct  man_macro {  struct  man_macro {
Line 72  struct man_macro {
Line 72  struct man_macro {
 #define MAN_SCOPED       (1 << 0)  #define MAN_SCOPED       (1 << 0)
 #define MAN_EXPLICIT     (1 << 1)       /* See blk_imp(). */  #define MAN_EXPLICIT     (1 << 1)       /* See blk_imp(). */
 #define MAN_FSCOPED      (1 << 2)       /* See blk_imp(). */  #define MAN_FSCOPED      (1 << 2)       /* See blk_imp(). */
   #define MAN_NSCOPED      (1 << 3)       /* See in_line_eoln(). */
 };  };
   
 extern  const struct man_macro *const man_macros;  extern  const struct man_macro *const man_macros;
Line 88  __BEGIN_DECLS
Line 89  __BEGIN_DECLS
                   man_err((m), (n)->line, (n)->pos, 0, (t))                    man_err((m), (n)->line, (n)->pos, 0, (t))
   
 int               man_word_alloc(struct man *, int, int, const char *);  int               man_word_alloc(struct man *, int, int, const char *);
 int               man_block_alloc(struct man *, int, int, int);  int               man_block_alloc(struct man *, int, int, enum mant);
 int               man_head_alloc(struct man *, int, int, int);  int               man_head_alloc(struct man *, int, int, enum mant);
 int               man_body_alloc(struct man *, int, int, int);  int               man_body_alloc(struct man *, int, int, enum mant);
 int               man_elem_alloc(struct man *, int, int, int);  int               man_elem_alloc(struct man *, int, int, enum mant);
 void              man_node_free(struct man_node *);  void              man_node_free(struct man_node *);
 void              man_node_freelist(struct man_node *);  void              man_node_freelist(struct man_node *);
   void              man_node_unlink(struct man *, struct man_node *);
 void              man_hash_init(void);  void              man_hash_init(void);
 int               man_hash_find(const char *);  enum    mant      man_hash_find(const char *);
 int               man_macroend(struct man *);  int               man_macroend(struct man *);
 int               man_args(struct man *, int, int *, char *, char **);  int               man_args(struct man *, int, int *, char *, char **);
 #define ARGS_ERROR      (-1)  #define ARGS_ERROR      (-1)

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.26

CVSweb