diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-01-28 21:10:29 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-01-28 21:10:29 +0000 |
commit | 36f99479f42328cc901ce75400150b7e8bb86bfd (patch) | |
tree | f2d293407ad3c58139532adaf86843eeb366c9fe /usr.bin/mandoc/read.c | |
parent | 098d80b53c0c59d1f8acbeef29a25913a170e850 (diff) |
Clean up eqn(7) error handling:
* When "define" fails, do not drop the whole equation.
* Free memory after "undef".
* Use standard mandoc error types instead of rolling our own.
* Delete obfuscating EQN_MSG() macro.
* Add function prototypes while here.
Diffstat (limited to 'usr.bin/mandoc/read.c')
-rw-r--r-- | usr.bin/mandoc/read.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/mandoc/read.c b/usr.bin/mandoc/read.c index efe7b8784bc..0fdae06fdbc 100644 --- a/usr.bin/mandoc/read.c +++ b/usr.bin/mandoc/read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: read.c,v 1.94 2015/01/28 17:30:37 schwarze Exp $ */ +/* $OpenBSD: read.c,v 1.95 2015/01/28 21:10:28 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -173,12 +173,6 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "generic error", - /* related to equations */ - "unexpected equation scope closure", - "equation scope open on exit", - "overlapping equation scopes", - "unexpected end of equation", - /* related to tables */ "non-alphabetic character in tbl options", "skipping unknown tbl option", |