summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-29 01:16:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-29 01:16:57 +0000
commitd5144ffde6d84d22eacbce42462bf2486d995d91 (patch)
tree28406a7c095ee0bce715cd92848a1380533df824 /mandoc.h
parent752a79323a3403cb04e5f83d296286dbb0457369 (diff)
downloadmandoc-d5144ffde6d84d22eacbce42462bf2486d995d91.tar.gz
Significant update to options handling, which now departs almost
completely with the BSD.lv code due to performance issues and flat-out errors. Performance issues: functions called per character. Ugly. Flat-out errors: disallowing "reserved" tokens as arguments to those options accepting arguments. Also added are two mandoc.h error codes for general tbl syntax errors and for bad options.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mandoc.h b/mandoc.h
index 58c339fd..e5edc7b0 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -101,6 +101,8 @@ enum mandocerr {
MANDOCERR_ERROR, /* ===== start of errors ===== */
+ MANDOCERR_TBL, /* bad table syntax */
+ MANDOCERR_TBLOPT, /* bad table option */
MANDOCERR_ROFFLOOP, /* input stack limit exceeded, infinite loop? */
MANDOCERR_BADCHAR, /* skipping bad character */
MANDOCERR_NOTEXT, /* skipping text before the first section header */