diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-01-28 21:11:53 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-01-28 21:11:53 +0000 |
commit | e34c2321124c803bff9ccbde7eadf95994ead351 (patch) | |
tree | facdb887e73351772596311aeb667486c57e8d0a /mandoc.h | |
parent | 67cfc20e20f4c603c852ddf5c88024ce0d8d628c (diff) | |
download | mandoc-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 'mandoc.h')
-rw-r--r-- | mandoc.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.191 2015/01/28 17:32:07 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.192 2015/01/28 21:11:53 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -134,12 +134,6 @@ enum mandocerr { MANDOCERR_ERROR, /* ===== start of errors ===== */ - /* related to equations */ - MANDOCERR_EQNNSCOPE, /* unexpected equation scope closure*/ - MANDOCERR_EQNSCOPE, /* equation scope open on exit */ - MANDOCERR_EQNBADSCOPE, /* overlapping equation scopes */ - MANDOCERR_EQNEOF, /* unexpected end of equation */ - /* related to tables */ MANDOCERR_TBLOPT_ALPHA, /* non-alphabetic character in tbl options */ MANDOCERR_TBLOPT_BAD, /* skipping unknown tbl option: option */ |