view modules/vasprintf @ 13837:d7a891a411c1

strtod: work around icc bug With optimization, ICC 10.0 mis-compiles 'cond ? -val : val' such that a val of 0.0 doesn't result in -0.0. * lib/strtod.c (minus_zero): Define to working value. (strtod): Use it to avoid icc bug. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Fri, 05 Nov 2010 08:30:27 -0600
parents b9a762d04d6c
children efab6978105e
line wrap: on
line source

Description:
vsprintf with automatic memory allocation.

Notice:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars:
  --flag=asprintf:2:c-format --flag=vasprintf:2:c-format

Files:
lib/vasprintf.c
lib/asprintf.c
m4/vasprintf.m4

Depends-on:
extensions
vasnprintf
stdio
errno

configure.ac:
gl_FUNC_VASPRINTF
gl_STDIO_MODULE_INDICATOR([vasprintf])
m4_ifdef([AM_XGETTEXT_OPTION],
  [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
   AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])

Makefile.am:

Include:
<stdio.h>

License:
LGPLv2+

Maintainer:
Bruno Haible