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 | 483afc5a7a52b601da9e854d5645cd4b0a140184 (patch) | |
tree | 159f32df48c5d133f76368d6fb95ad45656bccc4 /man.h | |
parent | 0fa412f32faf6969057d9e796beabcbf0413f279 (diff) | |
download | mandoc-483afc5a7a52b601da9e854d5645cd4b0a140184.tar.gz mandoc-483afc5a7a52b601da9e854d5645cd4b0a140184.tar.zst mandoc-483afc5a7a52b601da9e854d5645cd4b0a140184.zip |
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 | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -1,4 +1,4 @@ -/* $Id: man.h,v 1.69 2015/01/24 02:41:49 schwarze Exp $ */ +/* $Id: man.h,v 1.70 2015/04/02 21:36:49 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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 */ |