Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c32fe432
Commit
c32fe432
authored
Oct 26, 2016
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid using a C++ keyword in header file
per cpluspluscheck
parent
586a46c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/backend/executor/execGrouping.c
src/backend/executor/execGrouping.c
+3
-3
src/include/lib/simplehash.h
src/include/lib/simplehash.h
+1
-1
No files found.
src/backend/executor/execGrouping.c
View file @
c32fe432
...
@@ -315,7 +315,7 @@ BuildTupleHashTable(int numCols, AttrNumber *keyColIdx,
...
@@ -315,7 +315,7 @@ BuildTupleHashTable(int numCols, AttrNumber *keyColIdx,
hashtable
->
cur_eq_funcs
=
NULL
;
hashtable
->
cur_eq_funcs
=
NULL
;
hashtable
->
hashtab
=
tuplehash_create
(
tablecxt
,
nbuckets
);
hashtable
->
hashtab
=
tuplehash_create
(
tablecxt
,
nbuckets
);
hashtable
->
hashtab
->
private
=
hashtable
;
hashtable
->
hashtab
->
private
_data
=
hashtable
;
return
hashtable
;
return
hashtable
;
}
}
...
@@ -447,7 +447,7 @@ FindTupleHashEntry(TupleHashTable hashtable, TupleTableSlot *slot,
...
@@ -447,7 +447,7 @@ FindTupleHashEntry(TupleHashTable hashtable, TupleTableSlot *slot,
static
uint32
static
uint32
TupleHashTableHash
(
struct
tuplehash_hash
*
tb
,
const
MinimalTuple
tuple
)
TupleHashTableHash
(
struct
tuplehash_hash
*
tb
,
const
MinimalTuple
tuple
)
{
{
TupleHashTable
hashtable
=
(
TupleHashTable
)
tb
->
private
;
TupleHashTable
hashtable
=
(
TupleHashTable
)
tb
->
private
_data
;
int
numCols
=
hashtable
->
numCols
;
int
numCols
=
hashtable
->
numCols
;
AttrNumber
*
keyColIdx
=
hashtable
->
keyColIdx
;
AttrNumber
*
keyColIdx
=
hashtable
->
keyColIdx
;
uint32
hashkey
=
0
;
uint32
hashkey
=
0
;
...
@@ -511,7 +511,7 @@ TupleHashTableMatch(struct tuplehash_hash *tb, const MinimalTuple tuple1, const
...
@@ -511,7 +511,7 @@ TupleHashTableMatch(struct tuplehash_hash *tb, const MinimalTuple tuple1, const
{
{
TupleTableSlot
*
slot1
;
TupleTableSlot
*
slot1
;
TupleTableSlot
*
slot2
;
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
* We assume that simplehash.h will only ever call us with the first
...
...
src/include/lib/simplehash.h
View file @
c32fe432
...
@@ -116,7 +116,7 @@ typedef struct SH_TYPE
...
@@ -116,7 +116,7 @@ typedef struct SH_TYPE
MemoryContext
ctx
;
MemoryContext
ctx
;
/* user defined data, useful for callbacks */
/* user defined data, useful for callbacks */
void
*
private
;
void
*
private
_data
;
}
SH_TYPE
;
}
SH_TYPE
;
typedef
enum
SH_STATUS
typedef
enum
SH_STATUS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment