aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-10-02 10:14:37 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-10-02 10:14:37 +0000
commit356d9b0c7c07c1841fd83d88570cf874b60c658c (patch)
tree0d670b34fe366caefa98455ed6548c540820dbeb /man.h
parent5e7fb1db20be568b2fe3b2f582beeb683c0812eb (diff)
downloadmandoc-356d9b0c7c07c1841fd83d88570cf874b60c658c.tar.gz
mandoc-356d9b0c7c07c1841fd83d88570cf874b60c658c.tar.zst
mandoc-356d9b0c7c07c1841fd83d88570cf874b60c658c.zip
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.h80
1 files changed, 1 insertions, 79 deletions
diff --git a/man.h b/man.h
index a50a2d4b..d31d20c0 100644
--- a/man.h
+++ b/man.h
@@ -1,4 +1,4 @@
-/* $Id: man.h,v 1.43 2010/08/20 01:02:07 schwarze Exp $ */
+/* $Id: man.h,v 1.44 2010/10/02 10:14:37 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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