summaryrefslogtreecommitdiffstats
path: root/libman.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-29 04:52:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-29 04:52:14 +0000
commit40d86894cf83a9f39b0d85e391c7c16574971889 (patch)
tree670208d3e7101f9294ad5312ae1d25ef3f051886 /libman.h
parentf21a38903f3f18b8185649f2a8fda1137ae506cd (diff)
downloadmandoc-40d86894cf83a9f39b0d85e391c7c16574971889.tar.gz
Initial step in fixing badness reported by Sascha Wildner (wip).
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/libman.h b/libman.h
index ba410ae8..af4574cb 100644
--- a/libman.h
+++ b/libman.h
@@ -27,13 +27,15 @@ enum man_next {
struct man {
void *data;
struct man_cb cb;
- int pflags;
- int flags;
-#define MAN_HALT (1 << 0)
+ int pflags; /* parse flags (see man.h) */
+ int svflags; /* flags saved during roff blocks */
+ int flags; /* parse flags */
+#define MAN_HALT (1 << 0) /* badness happened: die */
#define MAN_ELINE (1 << 1) /* Next-line element scope. */
#define MAN_BLINE (1 << 2) /* Next-line block scope. */
#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;