aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-15 04:26:39 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-15 04:26:39 +0000
commit6b618405d781b6a4a5425bf52419f31f0362fcf1 (patch)
treed28f1821e50247b93cfa8e53a1db6db3e51a969b /mandoc.h
parent8b5853de9633ceece63738b2ccd5bdba06098315 (diff)
downloadmandoc-6b618405d781b6a4a5425bf52419f31f0362fcf1.tar.gz
mandoc-6b618405d781b6a4a5425bf52419f31f0362fcf1.tar.zst
mandoc-6b618405d781b6a4a5425bf52419f31f0362fcf1.zip
Fatal errors no longer exist.
If a file can be opened, mandoc will produce some output; at worst, the output may be almost empty. Simplifies error handling and frees a message type for future use.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/mandoc.h b/mandoc.h
index 3cf938e1..aa9a628b 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.181 2015/01/15 02:29:26 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.182 2015/01/15 04:26:40 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -148,6 +148,7 @@ enum mandocerr {
/* related to document structure and macros */
MANDOCERR_FILE, /* cannot open file */
+ MANDOCERR_TOOLARGE, /* input too large */
MANDOCERR_ROFFLOOP, /* input stack limit exceeded, infinite loop? */
MANDOCERR_BADCHAR, /* skipping bad character: number */
MANDOCERR_MACRO, /* skipping unknown macro: macro */
@@ -172,10 +173,6 @@ enum mandocerr {
MANDOCERR_ARG_EXCESS, /* skipping excess arguments: macro ... args */
MANDOCERR_DIVZERO, /* divide by zero */
- MANDOCERR_FATAL, /* ===== start of fatal errors ===== */
-
- MANDOCERR_TOOLARGE, /* input too large */
-
MANDOCERR_MAX
};