Commit c32fe432 authored by Peter Eisentraut's avatar Peter Eisentraut

Avoid using a C++ keyword in header file

per cpluspluscheck
parent 586a46c2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment