aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
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 /roff.c
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 'roff.c')
-rw-r--r--roff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roff.c b/roff.c
index aabf0880..1e62be4e 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.110 2010/12/28 10:59:07 kristaps Exp $ */
+/* $Id: roff.c,v 1.111 2010/12/29 01:16:57 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -1130,7 +1130,7 @@ roff_TS(ROFF_ARGS)
(*r->msg)(MANDOCERR_SCOPEBROKEN, r->data, ln, ppos, NULL);
tbl_reset(r->tbl);
} else
- r->tbl = tbl_alloc();
+ r->tbl = tbl_alloc(r->data, r->msg);
return(ROFF_IGN);
}