postgresql/src/common
Tom Lane 09a89cb5fc Get rid of use of asprintf() in favor of a more portable implementation.
asprintf(), aside from not being particularly portable, has a fundamentally
badly-designed API; the psprintf() function that was added in passing in
the previous patch has a much better API choice.  Moreover, the NetBSD
implementation that was borrowed for the previous patch doesn't work with
non-C99-compliant vsnprintf, which is something we still have to cope with
on some platforms; and it depends on va_copy which isn't all that portable
either.  Get rid of that code in favor of an implementation similar to what
we've used for many years in stringinfo.c.  Also, move it into libpgcommon
since it's not really libpgport material.

I think this patch will be enough to turn the buildfarm green again, but
there's still cosmetic work left to do, namely get rid of pg_asprintf()
in favor of using psprintf().  That will come in a followon patch.
2013-10-22 18:42:13 -04:00
..
exec.c Switch dependency order of libpgcommon and libpgport 2013-10-17 22:02:35 -04:00
fe_memutils.c Get rid of use of asprintf() in favor of a more portable implementation. 2013-10-22 18:42:13 -04:00
Makefile Get rid of use of asprintf() in favor of a more portable implementation. 2013-10-22 18:42:13 -04:00
pgfnames.c Move pgfnames() from libpgport to libpgcommon 2013-10-18 21:28:15 -04:00
psprintf.c Get rid of use of asprintf() in favor of a more portable implementation. 2013-10-22 18:42:13 -04:00
relpath.c Add use of asprintf() 2013-10-13 00:09:18 -04:00
rmtree.c Move rmtree() from libpgport to libpgcommon 2013-10-19 10:20:51 -04:00
wait_error.c Switch dependency order of libpgcommon and libpgport 2013-10-17 22:02:35 -04:00