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 /main.c | |
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 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.125 2010/12/22 11:38:17 kristaps Exp $ */ +/* $Id: main.c,v 1.126 2010/12/29 01:16:57 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -179,6 +179,8 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "generic error", + "bad table syntax", + "bad table option", "input stack limit exceeded, infinite loop?", "skipping bad character", "skipping text before the first section header", |