aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-07-04 15:38:26 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-07-04 15:38:26 +0000
commit38564fb72f1972ec44f0dd16e2ae4802adc9d3c9 (patch)
tree8fcb369483727b656742f258c9875c50e59f215b /mandoc.h
parent297de1c8ac72f2de64a49c98141c097cad06e90f (diff)
downloadmandoc-38564fb72f1972ec44f0dd16e2ae4802adc9d3c9.tar.gz
mandoc-38564fb72f1972ec44f0dd16e2ae4802adc9d3c9.tar.zst
mandoc-38564fb72f1972ec44f0dd16e2ae4802adc9d3c9.zip
The mandoc(1) manual already mentions that -T man output mode
neither supports tbl(7) nor eqn(7) input. If an input file contains such code anyway, tell the user rather than failing an assert(3)ion. Fixing a crash reported by Bjarni Ingi Gislason <bjarniig at rhi dot hi dot is> in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901636 which the Debian maintainer of mandoc, Michael at Stapelberg dot ch, forwarded to me.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/mandoc.h b/mandoc.h
index 3f68e9d4..8f4895b2 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,6 +1,6 @@
-/* $Id: mandoc.h,v 1.271 2021/06/27 17:57:54 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.272 2021/07/04 15:38:26 schwarze Exp $ */
/*
- * Copyright (c) 2012-2020 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2012-2021 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -245,6 +245,8 @@ enum mandocerr {
MANDOCERR_TBLOPT_EQN, /* eqn delim option in tbl: arg */
MANDOCERR_TBLLAYOUT_MOD, /* unsupported tbl layout modifier: m */
MANDOCERR_TBLMACRO, /* ignoring macro in table: macro */
+ MANDOCERR_TBL_TMAN, /* skipping tbl in -Tman mode */
+ MANDOCERR_EQN_TMAN, /* skipping eqn in -Tman mode */
MANDOCERR_BADARG, /* ===== start of bad invocations ===== */