From 7ad01f8ebef4b1e297a623c2015424d330da5958 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 25 Jan 2001 02:03:10 +0000 Subject: Add chunk allocators. 2001-01-24 Not Zed * e-sexp.h (ESExp): Add chunk allocators. * e-sexp.c: Removed some redundant debug printfs. (e_sexp_term_eval): Dont allocate result till we have it. so we can have a fatal error, and not leak it. (term_eval_plus): If we have to abort, free our arguments. (term_eval_sub): Same. (parse_new_term): Renamed to parse_term_new for consistency. Fixed callers. (e_sexp_result_new): Add the esexp as an argument. Ouch, lots of code to change for this. Allocate blocks from an ememchunk. Fixed all callers. (e_sexp_result_free): Same as above, free blocks from the ememchunk. Fixed all callers. (parse_term_new): (parse_term_free): Similarly, add the esexp to the argument, and alloc/free from memchunks. Fixed all local callers. (e_sexp_init): Setup the memory chunk allocators. (e_sexp_finalise): Destroy memchunk allocators. svn path=/trunk/; revision=7795 --- e-util/ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'e-util/ChangeLog') diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 0019b44da9..96cd3815bb 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,5 +1,7 @@ 2001-01-24 Not Zed + * e-sexp.h (ESExp): Add chunk allocators. + * e-sexp.c: Removed some redundant debug printfs. (e_sexp_term_eval): Dont allocate result till we have it. so we can have a fatal error, and not leak it. @@ -7,6 +9,16 @@ (term_eval_sub): Same. (parse_new_term): Renamed to parse_term_new for consistency. Fixed callers. + (e_sexp_result_new): Add the esexp as an argument. Ouch, lots of + code to change for this. Allocate blocks from an ememchunk. + Fixed all callers. + (e_sexp_result_free): Same as above, free blocks from the + ememchunk. Fixed all callers. + (parse_term_new): + (parse_term_free): Similarly, add the esexp to the argument, and + alloc/free from memchunks. Fixed all local callers. + (e_sexp_init): Setup the memory chunk allocators. + (e_sexp_finalise): Destroy memchunk allocators. 2001-01-23 Not Zed -- cgit