[PULL libXdmcp] Cleanups: getting rid of X{alloc, free, realloc}, others

Jamey Sharp jamey at minilop.net
Wed May 5 15:23:58 PDT 2010


On Wed, May 5, 2010 at 2:22 PM, Mikhail Gusarov <dottedmag at dottedmag.net> wrote:
>      Get rid of Xalloc/Xrealloc/Xfree from X server or Xlib
>
> Main change is getting rid of X* functions in library, and using C
> allocation functions directly.

I think it isn't safe to get rid of Xalloc and friends in client
libraries. As I understand it, they're still relevant on Windows
because of some kind of DLL crap. (XCB doesn't offer any of those
wrappers and the Windows folks seem to have become resigned to that
fact, but that doesn't mean we can break existing libraries.)

I think it's OK to remove those in the server because it isn't a
library, and so can't be used with more than one libc at a time
anyway.

It'd probably help if Windows folks could correct the, undoubtedly
many, things wrong with what I've just written. :-)

Jamey


More information about the xorg-devel mailing list