diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-17 10:53:32 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-17 10:53:32 +0000 |
commit | 08234e1261b84672fa81eab4dd6640e9b55e2f63 (patch) | |
tree | 3321dec2f6157aa567b7f0845a6e86753b314ff5 /libmdoc.h | |
parent | aa8ebdeebdc3218708b91a72e0b499258a3e5cef (diff) | |
download | mandoc-08234e1261b84672fa81eab4dd6640e9b55e2f63.tar.gz |
Section orders are more elegantly handled (MDOC_PBODY is a flag).
Cleaned up string->enum conversion for section lookup.
Diffstat (limited to 'libmdoc.h')
-rw-r--r-- | libmdoc.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -29,8 +29,9 @@ struct mdoc { struct mdoc_cb cb; void *htab; int flags; -#define MDOC_HALT (1 << 0) -#define MDOC_LITERAL (1 << 1) +#define MDOC_HALT (1 << 0) /* Error in parse. Halt. */ +#define MDOC_LITERAL (1 << 1) /* In a literal scope. */ +#define MDOC_PBODY (1 << 2) /* In the document body. */ int pflags; enum mdoc_next next; struct mdoc_node *last; |