mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
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.
This commit is contained in:
@@ -80,8 +80,9 @@ extern Datum bitle(PG_FUNCTION_ARGS);
|
||||
extern Datum bitgt(PG_FUNCTION_ARGS);
|
||||
extern Datum bitge(PG_FUNCTION_ARGS);
|
||||
extern Datum bitcmp(PG_FUNCTION_ARGS);
|
||||
extern Datum bitand(PG_FUNCTION_ARGS);
|
||||
extern Datum bitor(PG_FUNCTION_ARGS);
|
||||
/* avoid the names bitand and bitor, since they are C++ keywords */
|
||||
extern Datum bit_and(PG_FUNCTION_ARGS);
|
||||
extern Datum bit_or(PG_FUNCTION_ARGS);
|
||||
extern Datum bitxor(PG_FUNCTION_ARGS);
|
||||
extern Datum bitnot(PG_FUNCTION_ARGS);
|
||||
extern Datum bitshiftleft(PG_FUNCTION_ARGS);
|
||||
|
||||
Reference in New Issue
Block a user