postgresql/config
Tom Lane ac4ef637ad Allow use of "z" flag in our printf calls, and use it where appropriate.
Since C99, it's been standard for printf and friends to accept a "z" size
modifier, meaning "whatever size size_t has".  Up to now we've generally
dealt with printing size_t values by explicitly casting them to unsigned
long and using the "l" modifier; but this is really the wrong thing on
platforms where pointers are wider than longs (such as Win64).  So let's
start using "z" instead.  To ensure we can do that on all platforms, teach
src/port/snprintf.c to understand "z", and add a configure test to force
use of that implementation when the platform's version doesn't handle "z".

Having done that, modify a bunch of places that were using the
unsigned-long hack to use "z" instead.  This patch doesn't pretend to have
gotten everyplace that could benefit, but it catches many of them.  I made
an effort in particular to ensure that all uses of the same error message
text were updated together, so as not to increase the number of
translatable strings.

It's possible that this change will result in format-string warnings from
pre-C99 compilers.  We might have to reconsider if there are any popular
compilers that will warn about this; but let's start by seeing what the
buildfarm thinks.

Andres Freund, with a little additional work by me
2014-01-23 17:18:33 -05:00
..
ac_func_accept_argtypes.m4 Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
acx_pthread.m4 Better support for thread-support flag detection with clang 2011-02-16 23:15:54 +02:00
c-compiler.m4 Compiler optimizations for page checksum code. 2013-04-30 06:59:26 +01:00
c-library.m4 Allow use of "z" flag in our printf calls, and use it where appropriate. 2014-01-23 17:18:33 -05:00
config.guess Update config.guess and config.sub 2013-04-26 22:13:03 -04:00
config.sub Update config.guess and config.sub 2013-04-26 22:13:03 -04:00
docbook.m4 Fix configure's search for collateindex.pl. 2012-03-22 00:46:03 -04:00
general.m4 Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
install-sh Fix install-strip on Mac OS X 2012-08-21 23:42:43 -04:00
libtool.m4
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
missing Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
perl.m4 Detect Windows perl linkage parameters in configure script. 2013-01-09 17:49:23 -05:00
prep_buildtree find -path is not portable, so use grep -v instead. 2010-10-25 10:04:00 -03:00
programs.m4 Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
python.m4 Fix plpython build on older versions of OS X. 2013-01-06 15:49:53 -05:00
tcl.m4 Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00