aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-30 14:50:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-30 14:50:08 +0000
commitacabb8adac4c3a73958a04790a165c1880c5f91c (patch)
tree39c45c61e29705d3c9e0594d9253cc15aa9aaea4 /mandoc.h
parenta9c60e19e39804deecac9dc666a4ccad62e76f9c (diff)
downloadmandoc-acabb8adac4c3a73958a04790a165c1880c5f91c.tar.gz
mandoc-acabb8adac4c3a73958a04790a165c1880c5f91c.tar.zst
mandoc-acabb8adac4c3a73958a04790a165c1880c5f91c.zip
Remove two useless FATAL errors.
When a file contains neither text nor macros, treat it as an empty document. When the mdoc(7) document prologue is incomplete, use some default values.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/mandoc.h b/mandoc.h
index 9b4f8562..1662c8ba 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.144 2014/07/30 12:58:21 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.145 2014/07/30 14:50:08 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -160,14 +160,12 @@ enum mandocerr {
MANDOCERR_FATAL, /* ===== start of fatal errors ===== */
MANDOCERR_TOOLARGE, /* input too large */
- MANDOCERR_NOTMANUAL, /* not a manual */
MANDOCERR_COLUMNS, /* column syntax is inconsistent */
MANDOCERR_BADDISP, /* NOT IMPLEMENTED: .Bd -file */
MANDOCERR_SYNTCHILD, /* child violates parent syntax */
MANDOCERR_SYNTARGCOUNT, /* argument count wrong, violates syntax */
MANDOCERR_SO_PATH, /* NOT IMPLEMENTED: .so with absolute path or ".." */
MANDOCERR_SO_FAIL, /* .so request failed */
- MANDOCERR_NODOCPROLOG, /* no document prologue */
MANDOCERR_MEM, /* static buffer exhausted */
/* ===== system errors ===== */