[PATCH 06/11] Add X*asprintf() routines to mirror common asprintf() routines

Mikhail Gusarov dottedmag at dottedmag.net
Tue Nov 30 04:09:32 PST 2010


Twas brillig at 20:57:43 29.11.2010 UTC-08 when alan.coopersmith at oracle.com did gyre and gimble:

 AC> +#ifndef XPRINTF_H
 AC> +#define XPRINTF_H
 AC> +
 AC> +#include <stdarg.h>
 AC> +#include <X11/Xfuncproto.h>
 AC> +
 AC> +#ifndef _X_RESTRICT_KYWD
 AC> +# if defined(restrict) /* assume autoconf set it correctly */ || \
 AC> +   (defined(__STDC__) && (__STDC_VERSION__ - 0 >= 199901L)) /* C99 */
 AC> +#  define _X_RESTRICT_KYWD  restrict
 AC> +# elif defined(__GNUC__) && !defined(__STRICT_ANSI__) /* gcc w/C89+extensions */
 AC> +#  define _X_RESTRICT_KYWD __restrict__
 AC> +# else
 AC> +#  define _X_RESTRICT_KYWD
 AC> +# endif
 AC> +#endif

Maybe this is a material for Xfuncproto.h?

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


More information about the xorg-devel mailing list