pgsql: Fix C++ compile failures in headers.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix C++ compile failures in headers.
Date: 2019-01-10 19:07:06
Message-ID: E1ghffW-0004Jv-5s@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/eaf0380eccd53df5ce7d1fed41f4ca16f4146408

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-01-10 19:20:33 pgsql: Add .gitignore entry for a derived file created by "make distpre
Previous Message Alvaro Herrera 2019-01-10 18:57:54 Re: pgsql: Move inheritance expansion code into its own file