From e34c2321124c803bff9ccbde7eadf95994ead351 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 28 Jan 2015 21:11:53 +0000 Subject: 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. --- read.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'read.c') 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 * Copyright (c) 2010-2015 Ingo Schwarze @@ -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", -- cgit v1.2.3