RFC: getting rid of Xalloc/Xfree/... in server

Mikhail Gusarov dottedmag at dottedmag.net
Wed May 5 12:27:04 PDT 2010


Hi,

There is RFC patchset which gets rid of Xalloc/Xfree/... wrappers in X
server while retaining the API and ABI.

URL: git://anongit.freedesktop.org/~dottedmag/xserver no-xalloc

The changes are as the following:

 * Xalloc/Xfree/Xrealloc/Xcalloc (and lowercase macros) usage is
   replaced by malloc/free/realloc/calloc.

 * lowercase macros are kept in headers as is

 * X* functions are cleaned up (no longer manual alignment tricks) and
   became just a plain wrappers without additional functionality.

 * X* functions are marked as deprecated.

 * XNF*/xnf* functions are kept as is, except that all XNF* uses in X
   server are replaced by xnf* for consistency.

If retaining ABI is not necessary at this point of server lifecycle, it
should be relatively easy to drop X* and XNF* exported symbols
altogether, keeping xnf* functions and handful of compatibility macros.

-- 
  http://fossarchy.blogspot.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100506/8de762e9/attachment.pgp>


More information about the xorg-devel mailing list