xserver: Cleaning up memory allocation functions and macros

Daniel Stone daniel at fooishbar.org
Tue May 1 14:14:17 PDT 2007


On Tue, May 01, 2007 at 12:24:12PM +0200, Gabor Gombas wrote:
> On Tue, May 01, 2007 at 12:49:24AM +0300, Daniel Stone wrote:
> 
> > There are numerous documented ways to deal with this (e.g. LD_PRELOAD).
> > Why are we the only project that feels the need to wrap memory
> > allocation, based on a use case no-one can even think of?
> 
> Hardly the only one. GNOME uses glib's g_malloc(),

Most of the original reason for g_malloc was to abort() on error, so
apps and API designers didn't have to trouble themselves with error
handling.  This ... is not something I'm keen on emulating.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20070502/0d4c708f/attachment.pgp>


More information about the xorg mailing list