summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org.ua>2011-03-01 12:10:12 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-03-01 12:18:38 (GMT)
commitdfb2a4fb8358c12816e120b16607b272697e20be (patch) (side-by-side diff)
treecd9f89cd64d5f93e1f7247f72baa620453462823 /src/main.c
parentf1b7f42ce6d83a8e37d5b836c7d801afb2b18c43 (diff)
downloadmailfromd-dfb2a4fb8358c12816e120b16607b272697e20be.tar.gz
mailfromd-dfb2a4fb8358c12816e120b16607b272697e20be.tar.bz2
Store exception names in the dataseg.
* src/mf-status.c: Remove. * src/exclist.c: New file. * src/Makefile.am (mailfromd_SOURCES): Remove mf-status.c, add exclist.c. * src/gram.y (exdecl): Call define_exception. (dataseg_layout): Create table of exception names in dataseg. * src/mailfromd.h (define_constant): Change return value. (string_to_exception): Remove. (define_exception,enumerate_exceptions) (free_exceptions): New protos. * src/main.c (main): Call free_exceptions. * src/prog.c (exception_count): Move declaration to exclist.c (instr_throw): Add trace print. (dump_throw): Print exception number along with its symbolic value. (env_throw_0): Reword default message. * src/prog.h (EXTABIND): New macro. * src/symbols.c (define_constant): Return pointer to the allocated struct constant. * tests/eof.at: Reflect changes to env_throw_0. * tests/hdr-gete.at: Likewise. * mflib/mfex.awk: Simplify.
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f2c0c03..f27a971 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1263,6 +1263,7 @@ main(int argc, char **argv)
}
}
+ free_exceptions();
free_symbols();
free_string_space();
free_parser_data();

Return to:

Send suggestions and report system problems to the System administrator.