Skip site navigation (1) Skip section navigation (2)

pgsql: Rename the C functions bitand(), bitor() to bit_and(),bit_or().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rename the C functions bitand(), bitor() to bit_and(),bit_or().
Date: 2010-12-27 19:58:17
Message-ID: E1PXJCz-0000Mz-N7@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Rename the C functions bitand(), bitor() to bit_and(), bit_or().

This is to avoid use of the C++ keywords "bitand" and "bitor" in
the header file utils/varbit.h.  Note the functions' SQL-level
names are not changed, only their C-level names.

In passing, make some comments in varbit.c conform to project-standard
layout.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=84fc571395f6986d912cda6c09826cb10caee7f0

Modified Files
--------------
src/backend/utils/adt/varbit.c   |   60 +++++++++++++++++++++++++------------
src/include/catalog/catversion.h |    2 +-
src/include/catalog/pg_proc.h    |    4 +-
src/include/utils/varbit.h       |    5 ++-
4 files changed, 46 insertions(+), 25 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2010-12-27 20:03:50
Subject: pgsql: Remove -fno-operator-names switch from cpluspluscheck.
Previous:From: Tom LaneDate: 2010-12-27 17:52:12
Subject: pgsql: Rearrange cpluspluscheck to check just one .h file at a time.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group