summaryrefslogtreecommitdiffstats
path: root/libman.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-08-21 12:32:38 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-08-21 12:32:38 +0000
commit270a33558b8c086b899f49f34e1d47da4792b7b8 (patch)
tree2a1c0cbef9edfff1a3fd8f1135fc17fed30bfd7d /libman.h
parentd8d8e19a17345326342a05e737487b04fa994353 (diff)
downloadmandoc-270a33558b8c086b899f49f34e1d47da4792b7b8.tar.gz
Fixed `nf' behaviour (had broken with de-chunking).
Added warnings if literal context already open/closed.
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libman.h b/libman.h
index c7f971b8..2b954dab 100644
--- a/libman.h
+++ b/libman.h
@@ -33,6 +33,7 @@ struct man {
#define MAN_HALT (1 << 0)
#define MAN_ELINE (1 << 1) /* Next-line element scope. */
#define MAN_BLINE (1 << 2) /* Next-line block scope. */
+#define MAN_LITERAL (1 << 3) /* Literal input. */
enum man_next next;
struct man_node *last;
struct man_node *first;
@@ -58,6 +59,8 @@ enum merr {
WMACROFORM,
WEXITSCOPE,
WNOSCOPE,
+ WOLITERAL,
+ WNLITERAL,
WERRMAX
};
@@ -106,6 +109,7 @@ int man_verr(struct man *, int, int, const char *, ...);
int man_valid_post(struct man *);
int man_valid_pre(struct man *, const struct man_node *);
int man_action_post(struct man *);
+int man_action_pre(struct man *, struct man_node *);
int man_unscope(struct man *, const struct man_node *);
__END_DECLS