aboutsummaryrefslogtreecommitdiffstats
path: root/common/estream-printf.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2007-05-15 19:47:15 +0000
committerWerner Koch <[email protected]>2007-05-15 19:47:15 +0000
commitad3ab7a059306f336d1e12e26f52f69007a98d4e (patch)
treee75d5162d30be37a2dbe950b6687da42a1fc66d5 /common/estream-printf.c
parentUse estream_asprintf instead of the GNU asprintf. (diff)
downloadgnupg-ad3ab7a059306f336d1e12e26f52f69007a98d4e.tar.gz
gnupg-ad3ab7a059306f336d1e12e26f52f69007a98d4e.zip
Adjusted symbols for printf and updated to latest version.
Diffstat (limited to 'common/estream-printf.c')
-rw-r--r--common/estream-printf.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/common/estream-printf.c b/common/estream-printf.c
index dcbb8073d..fce56867c 100644
--- a/common/estream-printf.c
+++ b/common/estream-printf.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*
- * $Id: estream-printf.c 54 2007-05-15 14:12:06Z wk $
+ * $Id: estream-printf.c 56 2007-05-15 18:38:43Z wk $
*/
/* Required autoconf tests:
@@ -34,7 +34,7 @@
Note that the file estream.m4 provides the autoconf macro
ESTREAM_PRINTF_INIT which runs all required checks.
-
+ See estream-printf.h for ways to tune this code.
Missing stuff: wchar and wint_t
thousands_sep in pr_float.
@@ -61,21 +61,21 @@
#ifdef TEST
# include <locale.h>
#endif
-#ifdef ESTREAM_PRINTF_EXTRA_INCLUDE
-#include ESTREAM_PRINTF_EXTRA_INCLUDE
+#ifdef _ESTREAM_PRINTF_EXTRA_INCLUDE
+#include _ESTREAM_PRINTF_EXTRA_INCLUDE
#endif
#include "estream-printf.h"
/* Allow redefinition of asprintf used malloc functions. */
-#ifdef ESTREAM_ASPRINTF_MALLOC
-#define my_asprintf_malloc(a) ESTREAM_ASPRINTF_MALLOC((a))
+#ifdef _ESTREAM_PRINTF_MALLOC
+#define my_printf_malloc(a) _ESTREAM_PRINTF_MALLOC((a))
#else
-#define my_asprintf_malloc(a) malloc((a))
+#define my_printf_malloc(a) malloc((a))
#endif
-#ifdef ESTREAM_ASPRINTF_FREE
-#define my_asprintf_free(a) ESTREAM_ASPRINTF_FREE((a))
+#ifdef _ESTREAM_PRINTF_FREE
+#define my_printf_free(a) _ESTREAM_PRINTF_FREE((a))
#else
-#define my_asprintf_free(a) free((a))
+#define my_printf_free(a) free((a))
#endif
@@ -1799,7 +1799,7 @@ estream_vasprintf (char **bufp, const char *format, va_list arg_ptr)
parm.error_flag = 0;
parm.alloced = 512;
parm.used = 0;
- parm.buffer = my_asprintf_malloc (parm.alloced);
+ parm.buffer = my_printf_malloc (parm.alloced);
if (!parm.buffer)
{
*bufp = NULL;
@@ -1816,7 +1816,7 @@ estream_vasprintf (char **bufp, const char *format, va_list arg_ptr)
if (rc == -1)
{
memset (parm.buffer, 0, parm.used);
- my_asprintf_free (parm.buffer);
+ my_printf_free (parm.buffer);
*bufp = NULL;
return -1;
}