aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-28 21:11:53 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-28 21:11:53 +0000
commite34c2321124c803bff9ccbde7eadf95994ead351 (patch)
treefacdb887e73351772596311aeb667486c57e8d0a /read.c
parent67cfc20e20f4c603c852ddf5c88024ce0d8d628c (diff)
downloadmandoc-e34c2321124c803bff9ccbde7eadf95994ead351.tar.gz
mandoc-e34c2321124c803bff9ccbde7eadf95994ead351.tar.zst
mandoc-e34c2321124c803bff9ccbde7eadf95994ead351.zip
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 'read.c')
-rw-r--r--read.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/read.c b/read.c
index 0cdb0a03..c55776eb 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.119 2015/01/28 17:32:07 schwarze Exp $ */
+/* $Id: read.c,v 1.120 2015/01/28 21:11:54 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -178,12 +178,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",