From 0085b048bff93dd2f247c5fa592a64b4c3f057bf Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 29 Dec 2010 01:16:57 +0000 Subject: 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. --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 131068ff..543f13fa 100644 --- a/main.c +++ b/main.c @@ -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 * Copyright (c) 2010 Ingo Schwarze @@ -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", -- cgit v1.2.3