pgsql: Fix C++ compile failures in headers.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

pgsql: Fix C++ compile failures in headers.

Tom Lane-2
Fix C++ compile failures in headers.

Avoid using "typeid" as a parameter name in header files, since that
is a C++ keyword.  These cases were introduced recently, in 04fe805a1
and 586b98fdf.

Since I'm an incurable neatnik, also rename these parameters in the
underlying function definitions.  That's not really necessary per
project rules, but I don't like function declarations that don't
quite agree with the underlying definitions.

Per src/tools/pginclude/cpluspluscheck.



Modified Files
src/backend/optimizer/plan/setrefs.c |  6 +++---
src/backend/utils/adt/varlena.c      | 16 ++++++++--------
src/include/optimizer/planmain.h     |  2 +-
src/include/utils/varlena.h          |  2 +-
4 files changed, 13 insertions(+), 13 deletions(-)