diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-27 15:52:41 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-27 15:52:41 +0000 |
commit | 093fd946278d03ba2f1e7e6e6194129e51485c58 (patch) | |
tree | bb6e2fa7169415d85019b7e5ad59ae9fc7523d2e /libmdoc.h | |
parent | 805bacfa2b5e3dcd0164d1295ff66e5d44e91853 (diff) | |
download | mandoc-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.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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, \ |