Mercurial > hg > xemacs-beta
diff src/dumper.c @ 2723:c474585a3460
[xemacs-hg @ 2005-04-10 00:47:53 by crestani]
New Allocator Fixes
* dumper.c (pdump_get_mc_addr): Use clearer code.
* dumper.c (pdump_put_mc_addr): Use clearer code.
* emacs.c (main_1): Initialize the new allocator only once.
* mc-alloc.c (get_page_header): Split up the assertions to better
spot the problem.
* mc-alloc.c (mc_alloc_1): Move definitions of local variables to
the beginning of the function.
author | crestani |
---|---|
date | Sun, 10 Apr 2005 00:47:58 +0000 |
parents | 6fa9919a9a0b |
children | 05d62157e048 |
line wrap: on
line diff
--- a/src/dumper.c Sat Apr 09 21:51:59 2005 +0000 +++ b/src/dumper.c Sun Apr 10 00:47:58 2005 +0000 @@ -537,7 +537,7 @@ assert (obj != 0); - while ((mc_addr = &pdump_mc_hash[pos]) && (mc_addr->obj != 0)) + while (((mc_addr = &pdump_mc_hash[pos]) != 0) && (mc_addr->obj != 0)) { if (mc_addr->obj == obj) return mc_addr->addr; @@ -568,7 +568,7 @@ mc_addr_elt *mc_addr; int pos = pdump_make_hash (obj); - while ((mc_addr = &pdump_mc_hash[pos]) && (mc_addr->obj != 0)) + while (((mc_addr = &pdump_mc_hash[pos]) != 0) && (mc_addr->obj != 0)) { if (mc_addr->obj == obj) return;