diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-10-02 10:14:37 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-10-02 10:14:37 +0000 |
commit | 1bba1dfa3e70cbb4cfa27b8456bf1b1cd1b03ffe (patch) | |
tree | 9d56abba3a22059452052c3c0e0824f44e595efb /man.h | |
parent | 888848b9ef0ff0c2d78f3756002677111f4cb08d (diff) | |
download | mandoc-1bba1dfa3e70cbb4cfa27b8456bf1b1cd1b03ffe.tar.gz |
Unify mdoc and man enums and structs into mandoc.h. This is part of the
slow process of logically splitting formatting frontend and parser backend
without pollution.
Diffstat (limited to 'man.h')
-rw-r--r-- | man.h | 78 |
1 files changed, 0 insertions, 78 deletions
@@ -19,84 +19,6 @@ #include <time.h> -enum mant { - MAN_br = 0, - MAN_TH, - MAN_SH, - MAN_SS, - MAN_TP, - MAN_LP, - MAN_PP, - MAN_P, - MAN_IP, - MAN_HP, - MAN_SM, - MAN_SB, - MAN_BI, - MAN_IB, - MAN_BR, - MAN_RB, - MAN_R, - MAN_B, - MAN_I, - MAN_IR, - MAN_RI, - MAN_na, - MAN_i, - MAN_sp, - MAN_nf, - MAN_fi, - MAN_r, - MAN_RE, - MAN_RS, - MAN_DT, - MAN_UC, - MAN_PD, - MAN_Sp, - MAN_Vb, - MAN_Ve, - MAN_AT, - MAN_in, - MAN_MAX -}; - -enum man_type { - MAN_TEXT, - MAN_ELEM, - MAN_ROOT, - MAN_BLOCK, - MAN_HEAD, - MAN_BODY -}; - -struct man_meta { - char *msec; - time_t date; - char *rawdate; - char *vol; - char *title; - char *source; -}; - -struct man_node { - struct man_node *parent; - struct man_node *child; - struct man_node *next; - struct man_node *prev; - int nchild; - int line; - int pos; - enum mant tok; - int flags; -#define MAN_VALID (1 << 0) -#define MAN_ACTED (1 << 1) -#define MAN_EOS (1 << 2) - enum man_type type; - char *string; - struct man_node *head; - struct man_node *body; -}; - extern const char *const *man_macronames; __BEGIN_DECLS |