PATCH: malloc.c cleanups

Greg McGary greg@mcgary.org
Wed Jul 19 07:18:00 GMT 2000


Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> writes:

> OK, I see.  It's probably a matter of taste, but I would prefer to see
> sizeof(main_arena.av[0]) used rather than the cast NULL pointer.

Fine by me.

Will you approve the patch if next_bin and prev_bin are changed like so?

#define next_bin(b)    ((mbinptr)((char*)(b) + 2 * sizeof(main_arena.av[0])))
#define prev_bin(b)    ((mbinptr)((char*)(b) - 2 * sizeof(main_arena.av[0])))

BTW, who has approval authority for malloc.c changes?
You only?  Uli only?  Both of you?

Thanks,
Greg


More information about the Libc-hacker mailing list