aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-16 19:06:30 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-16 19:06:30 +0000
commit445ff663a9eac36c01da1f214cb8c9592d66742c (patch)
tree3a7ddba2d8524cdcdd883bb96656704cde9bb5d8 /mandoc.h
parent5b77bfd6008789ed36ccd7847b9339dce94a6854 (diff)
downloadmandoc-445ff663a9eac36c01da1f214cb8c9592d66742c.tar.gz
mandoc-445ff663a9eac36c01da1f214cb8c9592d66742c.tar.zst
mandoc-445ff663a9eac36c01da1f214cb8c9592d66742c.zip
Introduce a new mandoc(1) message level, -W style, below -W warning.
Switch -W all from meaning -W warning to meaning -W style. The meaning of -T lint does *not* change, it still implies -W warning. No messages on the new level yet, but they will come. Usually, i do not lightly make the user interface larger. But this has been planned for years, and EXIT STATUS 1 was reserved for it all the time. The message system is now stable enough to finally implement it. jmc@ regarding the concept: "really good idea"
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 12c26a18..26ad4f66 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.215 2017/03/06 17:26:04 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.216 2017/05/16 19:06:30 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -28,7 +28,7 @@
*/
enum mandoclevel {
MANDOCLEVEL_OK = 0,
- MANDOCLEVEL_RESERVED,
+ MANDOCLEVEL_STYLE, /* style suggestions */
MANDOCLEVEL_WARNING, /* warnings: syntax, whitespace, etc. */
MANDOCLEVEL_ERROR, /* input has been thrown away */
MANDOCLEVEL_UNSUPP, /* input needs unimplemented features */
@@ -44,6 +44,8 @@ enum mandoclevel {
enum mandocerr {
MANDOCERR_OK,
+ MANDOCERR_STYLE, /* ===== start of style suggestions ===== */
+
MANDOCERR_WARNING, /* ===== start of warnings ===== */
/* related to the prologue */