aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit0085b048bff93dd2f247c5fa592a64b4c3f057bf (patch)
tree5ddb4d2cc67f0fec052cb74ca7b52690cd57200f /mandoc.h
parente18c5602811ab2af7cc316faebeddca75e6a669b (diff)
downloadmandoc-0085b048bff93dd2f247c5fa592a64b4c3f057bf.tar.gz
mandoc-0085b048bff93dd2f247c5fa592a64b4c3f057bf.tar.zst
mandoc-0085b048bff93dd2f247c5fa592a64b4c3f057bf.zip
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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mandoc.h b/mandoc.h
index 9b4eb759..df08fb9a 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.35 2010/12/22 11:38:17 kristaps Exp $ */
+/* $Id: mandoc.h,v 1.36 2010/12/29 01:16:57 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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 */