summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mandoc.h
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-08-08 15:21:17 +0000
committerschwarze <schwarze@openbsd.org>2014-08-08 15:21:17 +0000
commitac1f49d01ceff2a47571d14f0fdc829b542b4eee (patch)
treebcbcf457975e0316767cd5698eee3445dadc4a5d /usr.bin/mandoc/mandoc.h
parentuse nitems() instead of various local constructs (diff)
downloadwireguard-openbsd-ac1f49d01ceff2a47571d14f0fdc829b542b4eee.tar.xz
wireguard-openbsd-ac1f49d01ceff2a47571d14f0fdc829b542b4eee.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 'usr.bin/mandoc/mandoc.h')
-rw-r--r--usr.bin/mandoc/mandoc.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mandoc.h b/usr.bin/mandoc/mandoc.h
index 80fd8e69429..8b0ea9bddf1 100644
--- a/usr.bin/mandoc/mandoc.h
+++ b/usr.bin/mandoc/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.88 2014/08/08 15:15:27 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.89 2014/08/08 15:21:17 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 ===== */