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. --- mandoc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mandoc.h') 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 * @@ -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 */ -- cgit v1.2.3