aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff_int.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-31 07:08:12 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-31 07:08:12 +0000
commit6833508f150b9e1131c3e4446b71833171c103f0 (patch)
tree55cb47fe86eb32db5363cbc4ba3c48a3681bb870 /roff_int.h
parent04c844c9b370f59b5c07157eec6ba5a879b30218 (diff)
downloadmandoc-6833508f150b9e1131c3e4446b71833171c103f0.tar.gz
mandoc-6833508f150b9e1131c3e4446b71833171c103f0.tar.zst
mandoc-6833508f150b9e1131c3e4446b71833171c103f0.zip
Move parsing of the .nf and .fi (fill mode) requests from the man(7)
parser to the roff(7) parser. As a side effect, .nf and .fi are now also parsed in mdoc(7) input, though the mdoc(7) formatters still ignore most of their effect.
Diffstat (limited to 'roff_int.h')
-rw-r--r--roff_int.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/roff_int.h b/roff_int.h
index ac876434..29afb92f 100644
--- a/roff_int.h
+++ b/roff_int.h
@@ -1,4 +1,4 @@
-/* $Id: roff_int.h,v 1.13 2018/12/31 04:55:47 schwarze Exp $ */
+/* $Id: roff_int.h,v 1.14 2018/12/31 07:08:12 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -39,7 +39,7 @@ struct roff_man {
struct roff_node *last_es; /* The most recent Es node. */
int quick; /* Abort parse early. */
int flags; /* Parse flags. */
-#define MDOC_LITERAL (1 << 1) /* In a literal scope. */
+#define ROFF_NOFILL (1 << 1) /* Fill mode switched off. */
#define MDOC_PBODY (1 << 2) /* In the document body. */
#define MDOC_NEWLINE (1 << 3) /* First macro/text in a line. */
#define MDOC_PHRASE (1 << 4) /* In a Bl -column phrase. */
@@ -54,7 +54,7 @@ struct roff_man {
#define MDOC_PHRASEQF (1 << 13) /* Quote first word encountered. */
#define MDOC_PHRASEQL (1 << 14) /* Quote last word of this phrase. */
#define MDOC_PHRASEQN (1 << 15) /* Quote first word of the next phrase. */
-#define MAN_LITERAL MDOC_LITERAL
+#define MDOC_LITERAL ROFF_NOFILL
#define MAN_NEWLINE MDOC_NEWLINE
enum roff_sec lastsec; /* Last section seen. */
enum roff_sec lastnamed; /* Last standard section seen. */