diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-29 01:16:57 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-29 01:16:57 +0000 |
commit | 0085b048bff93dd2f247c5fa592a64b4c3f057bf (patch) | |
tree | 5ddb4d2cc67f0fec052cb74ca7b52690cd57200f /mandoc.h | |
parent | e18c5602811ab2af7cc316faebeddca75e6a669b (diff) | |
download | mandoc-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 */ |