mirror of https://github.com/postgres/postgres
Avoid using a C++ keyword in header file
per cpluspluscheck
This commit is contained in:
parent
586a46c22c
commit
c32fe432af
|
@ -315,7 +315,7 @@ BuildTupleHashTable(int numCols, AttrNumber *keyColIdx,
|
|||
hashtable->cur_eq_funcs = NULL;
|
||||
|
||||
hashtable->hashtab = tuplehash_create(tablecxt, nbuckets);
|
||||
hashtable->hashtab->private = hashtable;
|
||||
hashtable->hashtab->private_data = hashtable;
|
||||
|
||||
return hashtable;
|
||||
}
|
||||
|
@ -447,7 +447,7 @@ FindTupleHashEntry(TupleHashTable hashtable, TupleTableSlot *slot,
|
|||
static uint32
|
||||
TupleHashTableHash(struct tuplehash_hash *tb, const MinimalTuple tuple)
|
||||
{
|
||||
TupleHashTable hashtable = (TupleHashTable) tb->private;
|
||||
TupleHashTable hashtable = (TupleHashTable) tb->private_data;
|
||||
int numCols = hashtable->numCols;
|
||||
AttrNumber *keyColIdx = hashtable->keyColIdx;
|
||||
uint32 hashkey = 0;
|
||||
|
@ -511,7 +511,7 @@ TupleHashTableMatch(struct tuplehash_hash *tb, const MinimalTuple tuple1, const
|
|||
{
|
||||
TupleTableSlot *slot1;
|
||||
TupleTableSlot *slot2;
|
||||
TupleHashTable hashtable = (TupleHashTable) tb->private;
|
||||
TupleHashTable hashtable = (TupleHashTable) tb->private_data;
|
||||
|
||||
/*
|
||||
* We assume that simplehash.h will only ever call us with the first
|
||||
|
|
|
@ -116,7 +116,7 @@ typedef struct SH_TYPE
|
|||
MemoryContext ctx;
|
||||
|
||||
/* user defined data, useful for callbacks */
|
||||
void *private;
|
||||
void *private_data;
|
||||
} SH_TYPE;
|
||||
|
||||
typedef enum SH_STATUS
|
||||
|
|
Loading…
Reference in New Issue