[PATCH 1/6 v2] Add X*asprintf() routines to mirror common asprintf() routines

Keith Packard keithp at keithp.com
Thu Dec 2 22:28:08 PST 2010


On Thu, 02 Dec 2010 19:49:21 -0800, Alan Coopersmith <alan.coopersmith at oracle.com> wrote:

> Would that be the best answer then?   Should the asprintf() replacement
> just become _X_HIDDEN and link os/Xprintf.c into any module that calls
> it?   Right now, it looks like libvbe.so is the only caller outside the
> main server binary, and it calls XNFasprintf, which would be exported
> ABI either way.

It would be lovely if we had a way of sharing only with 'internal'
modules in the X server, but we don't. I also don't want to link os/Xprintf.c
into multiple modules, that seems ugly.

So, it seems like we have the option of exporting asprintf in our
effective ABI, or changing the name. Of the two, I'd be OK with
exporting asprintf in our ABI, but I don't feel strongly about it. If
someone has a cogent argument against providing asprintf in the ABI we
provide to video or input drivers, I'd love to hear it.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101202/f7a6e93f/attachment.pgp>


More information about the xorg-devel mailing list