summaryrefslogtreecommitdiffstats
path: root/private.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 12:51:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 12:51:28 +0000
commitff707aa645312b3a39818f27c27f11dc06eca2d6 (patch)
treec6f5e809ed79a338048fc6ce2c1e6549493c33f3 /private.h
parent850e4d98238e14f001698386740f660b1d4ea2df (diff)
downloadmandoc-ff707aa645312b3a39818f27c27f11dc06eca2d6.tar.gz
Moved prologue-pruning into action.c.
Added line-arg softmax.
Diffstat (limited to 'private.h')
-rw-r--r--private.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/private.h b/private.h
index 7dfb24b3..cf894321 100644
--- a/private.h
+++ b/private.h
@@ -30,8 +30,10 @@ struct mdoc {
void *data;
struct mdoc_cb cb;
void *htab;
+ int linetok;
int flags;
#define MDOC_HALT (1 << 0)
+#define MDOC_BODYPARSE (1 << 1)
enum mdoc_next next;
struct mdoc_node *last;
struct mdoc_node *first;
@@ -41,9 +43,13 @@ struct mdoc {
};
-/* FIXME: it's 9 (this isn't used properly). */
+/* Hard-limit of macro arguments. */
-#define MDOC_LINEARG_MAX 12
+#define MDOC_LINEARG_MAX 9
+
+/* Suggested limit of macro arguments. */
+
+#define MDOC_LINEARG_SOFTMAX 9
#define MACRO_PROT_ARGS struct mdoc *mdoc, int tok, int line, \
int ppos, int *pos, char *buf
@@ -57,7 +63,6 @@ struct mdoc_macro {
#define MDOC_QUOTABLE (1 << 3)
#define MDOC_PROLOGUE (1 << 4)
#define MDOC_TABSEP (1 << 5)
-#define MDOC_NOKEEP (1 << 6)
};
#define mdoc_nwarn(mdoc, node, type, fmt, ...) \