7 Feb
2006
7 Feb
'06
7:05 p.m.
VMiklos wrote:
On Mon, Feb 06, 2006 at 11:18:08PM +0100, Aurelien Foret <aurelien@archlinux.org> wrote:
[7] remove exit() calls from libalpm the library should never call exit() but always return an error code to the frontend (for instance, drop MALLOC macro)
hmm, is it really necessary to drop that macro? what about this patch? http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman;a=plain_commitdif...;
I don't think it would fit: it drops all possibilities to take needed actions to cleanup the environment (freeing locally allocated memory, ...) before leaving a function. Anyway, it is only used 6 times in the whole library... not a big deal to remove it. -- Aurelien