aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit17fb05b577517a04553bc0c0a3301f3113889621 (patch)
tree1f407e5401c453e90e704ded2eb538c3a0a43601 /libman.h
parent6d187d884b79f4f01b272770304b8c5ecac272f9 (diff)
downloadmandoc-17fb05b577517a04553bc0c0a3301f3113889621.tar.gz
mandoc-17fb05b577517a04553bc0c0a3301f3113889621.tar.zst
mandoc-17fb05b577517a04553bc0c0a3301f3113889621.zip
Initial step in fixing badness reported by Sascha Wildner (wip).
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libman.h b/libman.h
index 06769354..8faa7a04 100644
--- a/libman.h
+++ b/libman.h
@@ -1,4 +1,4 @@
-/* $Id: libman.h,v 1.28 2010/03/27 10:04:56 kristaps Exp $ */
+/* $Id: libman.h,v 1.29 2010/03/29 04:52:14 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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;