summaryrefslogtreecommitdiffstats
path: root/libmdoc.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 /libmdoc.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 'libmdoc.h')
-rw-r--r--libmdoc.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libmdoc.h b/libmdoc.h
index fb93f5a5..87f66c2d 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -26,8 +26,8 @@ enum mdoc_next {
};
struct mdoc {
- void *data;
- mandocmsg msg;
+ void *data; /* private application data */
+ mandocmsg msg; /* message callback */
int flags;
#define MDOC_HALT (1 << 0) /* error in parse: halt */
#define MDOC_LITERAL (1 << 1) /* in a literal scope */
@@ -37,16 +37,16 @@ struct mdoc {
#define MDOC_PPHRASE (1 << 5) /* within a partial phrase */
#define MDOC_FREECOL (1 << 6) /* `It' invocation should close */
int pflags;
- enum mdoc_next next;
- struct mdoc_node *last;
- struct mdoc_node *first;
- struct mdoc_meta meta;
+ enum mdoc_next next; /* where to put the next node */
+ struct mdoc_node *last; /* the last node parsed */
+ struct mdoc_node *first; /* the first node parsed */
+ struct mdoc_meta meta; /* document meta-data */
enum mdoc_sec lastnamed;
enum mdoc_sec lastsec;
+ const struct regset *regs; /* readonly registers */
};
#define MACRO_PROT_ARGS struct mdoc *m, \
- const struct regset *regs, \
enum mdoct tok, \
int line, \
int ppos, \