aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-17 10:53:32 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-17 10:53:32 +0000
commit112069844468772da75bff132e76dc021a0d51cc (patch)
tree9c1125ca5ca978ffb68fcbaee048ae7ce2fb6a62 /libmdoc.h
parent90971a6744219e0420d00c5eadd1d04649c52f33 (diff)
downloadmandoc-112069844468772da75bff132e76dc021a0d51cc.tar.gz
mandoc-112069844468772da75bff132e76dc021a0d51cc.tar.zst
mandoc-112069844468772da75bff132e76dc021a0d51cc.zip
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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libmdoc.h b/libmdoc.h
index 0606f4c3..73963a39 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmdoc.h,v 1.10 2009/06/15 10:36:01 kristaps Exp $ */
+/* $Id: libmdoc.h,v 1.11 2009/06/17 10:53:32 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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;