summaryrefslogtreecommitdiffstats
path: root/libman.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-27 15:52:41 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-27 15:52:41 +0000
commit093fd946278d03ba2f1e7e6e6194129e51485c58 (patch)
treebb6e2fa7169415d85019b7e5ad59ae9fc7523d2e /libman.h
parent805bacfa2b5e3dcd0164d1295ff66e5d44e91853 (diff)
downloadmandoc-093fd946278d03ba2f1e7e6e6194129e51485c58.tar.gz
Downstream maintainers: this removes UGLY! I don't want diverging
functionality and UGLY works quite well thanks to schwarze@'s careful attention. This also backs out function-prototype changes for struct regset, instead stuffing a pointer to the regset directly into struct mdoc/man/roff.
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libman.h b/libman.h
index 7119caa2..d1e48588 100644
--- a/libman.h
+++ b/libman.h
@@ -26,8 +26,8 @@ enum man_next {
};
struct man {
- void *data;
- mandocmsg msg;
+ void *data; /* private application data */
+ mandocmsg msg; /* output message handler */
int pflags; /* parse flags (see man.h) */
int flags; /* parse flags */
#define MAN_HALT (1 << 0) /* badness happened: die */
@@ -36,14 +36,14 @@ struct man {
#define MAN_ILINE (1 << 3) /* Ignored in next-line scope. */
#define MAN_LITERAL (1 << 4) /* Literal input. */
#define MAN_BPLINE (1 << 5)
- enum man_next next;
- struct man_node *last;
- struct man_node *first;
- struct man_meta meta;
+ enum man_next next; /* where to put the next node */
+ struct man_node *last; /* the last parsed node */
+ struct man_node *first; /* the first parsed node */
+ struct man_meta meta; /* document meta-data */
+ const struct regset *regs; /* readonly registers */
};
#define MACRO_PROT_ARGS struct man *m, \
- const struct regset *regs, \
enum mant tok, \
int line, \
int ppos, \