aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit133b6ec86f5c1723d06abd3b096c24406be4cea6 (patch)
treef10cd43a94a200c0c5610c9ff8879e71ded62b1a /libman.h
parent3c7b73a2f8774480e0df1984d751f9ead2c8c29d (diff)
downloadmandoc-133b6ec86f5c1723d06abd3b096c24406be4cea6.tar.gz
mandoc-133b6ec86f5c1723d06abd3b096c24406be4cea6.tar.zst
mandoc-133b6ec86f5c1723d06abd3b096c24406be4cea6.zip
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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libman.h b/libman.h
index f7853fc6..ee1f67a6 100644
--- a/libman.h
+++ b/libman.h
@@ -1,4 +1,4 @@
-/* $Id: libman.h,v 1.18 2009/08/19 12:15:58 kristaps Exp $ */
+/* $Id: libman.h,v 1.19 2009/08/21 12:32:38 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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