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 | 38def923d97b88a054e0bce2b8822bc014288458 (patch) | |
tree | 582cb385e1c346015f355bf7124ff9c95a5e9723 /mandoc.h | |
parent | d04af2267985bcac279f3ffad1ce6ee9fec2d44f (diff) | |
download | mandoc-38def923d97b88a054e0bce2b8822bc014288458.tar.gz |
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 | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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 */ |