summaryrefslogtreecommitdiffstats
path: root/libmdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-07 09:29:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-07 09:29:15 +0000
commitb29fdc329252f18b7e126d0b5bca94e997f64de5 (patch)
tree997877c720e8be1f0911426986c6dc049804ed7b /libmdoc.h
parent8bb2d440353dfd8ea31fc13961be17f653478d0b (diff)
downloadmandoc-b29fdc329252f18b7e126d0b5bca94e997f64de5.tar.gz
Tabularised error-code lookup in mdoc.c.
Diffstat (limited to 'libmdoc.h')
-rw-r--r--libmdoc.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libmdoc.h b/libmdoc.h
index f9e31cd6..179fcf88 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -42,7 +42,7 @@ struct mdoc {
};
enum merr {
- ETAILWS,
+ ETAILWS = 0,
ECOLEMPTY,
EARGVPARM,
EQUOTPARM,
@@ -52,7 +52,6 @@ enum merr {
ENOCALL,
EBODYPROL,
EPROLBODY,
- ESPACE,
ETEXTPROL,
ENOBLANK,
ETOOLONG,
@@ -66,8 +65,9 @@ enum merr {
ELISTTYPE,
EDISPTYPE,
EMULTIDISP,
- ESECNAME,
EMULTILIST,
+ ESECNAME,
+ ENAMESECINC,
EARGREP,
EBOOL,
ECOLMIS,
@@ -77,27 +77,27 @@ enum merr {
ESECOOO,
ESECREP,
EBADSTAND,
- ENAMESECINC,
ENOMULTILINE,
EMULTILINE,
ENOLINE,
EPROLOOO,
EPROLREP,
EBADMSEC,
+ EBADSEC,
EFONT,
EBADDATE,
+ ENUMFMT,
ENOWIDTH,
- EBADSEC,
EUTSNAME,
- ENUMFMT,
EOBS,
EMACPARM,
EIMPBRK,
EIGNE,
EOPEN,
- EQUOT,
+ EQUOTPHR,
ENOCTX,
- ENOPARMS
+ ESPACE,
+ MERRMAX
};
#define MACRO_PROT_ARGS struct mdoc *mdoc, int tok, int line, \