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 /demandoc.c | |
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 'demandoc.c')
-rw-r--r-- | demandoc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -26,6 +26,7 @@ #include <string.h> #include <unistd.h> +#include "roff.h" #include "man.h" #include "mdoc.h" #include "mandoc.h" @@ -239,7 +240,7 @@ pmdoc(const struct mdoc_node *p, int *line, int *col, int list) for ( ; p; p = p->next) { if (MDOC_LINE & p->flags) pline(p->line, line, col, list); - if (MDOC_TEXT == p->type) + if (ROFFT_TEXT == p->type) pstring(p->string, p->pos, col, list); if (p->child) pmdoc(p->child, line, col, list); @@ -253,7 +254,7 @@ pman(const struct man_node *p, int *line, int *col, int list) for ( ; p; p = p->next) { if (MAN_LINE & p->flags) pline(p->line, line, col, list); - if (MAN_TEXT == p->type) + if (ROFFT_TEXT == p->type) pstring(p->string, p->pos, col, list); if (p->child) pman(p->child, line, col, list); |