xserver: Cleaning up memory allocation functions and macros
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Digital signature
More information about the xorg