diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-02 21:36:49 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-02 21:36:49 +0000 |
commit | dd569c39747096c781c1cbec49b48a85ba29f23d (patch) | |
tree | 70767fb6dfe3f18d949151c1456b3d798a4976cb /man.h | |
parent | 2ee27038d09a5b1d2c51fbc67bf127f6a8c5800a (diff) | |
download | mandoc-dd569c39747096c781c1cbec49b48a85ba29f23d.tar.gz |
First step towards parser unification:
Replace enum mdoc_type and enum man_type by a unified enum roff_type.
Almost mechanical, no functional change.
Written on the ICE train from Frankfurt to Bruxelles on the way to p2k15.
Diffstat (limited to 'man.h')
-rw-r--r-- | man.h | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -58,17 +58,6 @@ enum mant { MAN_MAX }; -enum man_type { - MAN_TEXT, - MAN_ELEM, - MAN_ROOT, - MAN_BLOCK, - MAN_HEAD, - MAN_BODY, - MAN_TBL, - MAN_EQN -}; - struct man_meta { char *msec; /* `TH' section (1, 3p, etc.) */ char *date; /* `TH' normalised date */ @@ -91,7 +80,7 @@ struct man_node { #define MAN_VALID (1 << 0) /* has been validated */ #define MAN_EOS (1 << 2) /* at sentence boundary */ #define MAN_LINE (1 << 3) /* first macro/text on line */ - enum man_type type; /* AST node type */ + enum roff_type type; /* AST node type */ char *string; /* TEXT node argument */ struct man_node *head; /* BLOCK node HEAD ptr */ struct man_node *tail; /* BLOCK node TAIL ptr */ |