summaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_agg.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-11-26 03:43:18 +0000
committerBruce Momjian <bruce@momjian.us>1997-11-26 03:43:18 +0000
commitb7044266187a9f646589cb3aa2482d028cd0a87f (patch)
treefbb5f1a7472a56ddb4d47b639035ecec6641b97e /src/backend/parser/parse_agg.c
parent97ad0b1cd43527295159f2081be4d002be91f374 (diff)
Make parser functions static where possible.
Diffstat (limited to 'src/backend/parser/parse_agg.c')
-rw-r--r--src/backend/parser/parse_agg.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/backend/parser/parse_agg.c b/src/backend/parser/parse_agg.c
index 33e7f677a99..e552d0aa8c2 100644
--- a/src/backend/parser/parse_agg.c
+++ b/src/backend/parser/parse_agg.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_agg.c,v 1.2 1997/11/26 01:11:14 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_agg.c,v 1.3 1997/11/26 03:42:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -27,6 +27,10 @@
#include "parser/parse_target.h"
#include "utils/syscache.h"
+static bool contain_agg_clause(Node *clause);
+static bool exprIsAggOrGroupCol(Node *expr, List *groupClause);
+static bool tleIsAggOrGroupCol(TargetEntry *tle, List *groupClause);
+
/*
* AddAggToParseState -
* add the aggregate to the list of unique aggregates in pstate.
@@ -93,7 +97,7 @@ finalizeAggregates(ParseState *pstate, Query *qry)
*
* Returns true if any aggregate found.
*/
-bool
+static bool
contain_agg_clause(Node *clause)
{
if (clause == NULL)
@@ -151,7 +155,7 @@ contain_agg_clause(Node *clause)
* exprIsAggOrGroupCol -
* returns true if the expression does not contain non-group columns.
*/
-bool
+static bool
exprIsAggOrGroupCol(Node *expr, List *groupClause)
{
List *gl;
@@ -185,7 +189,7 @@ exprIsAggOrGroupCol(Node *expr, List *groupClause)
* tleIsAggOrGroupCol -
* returns true if the TargetEntry is Agg or GroupCol.
*/
-bool
+static bool
tleIsAggOrGroupCol(TargetEntry *tle, List *groupClause)
{
Node *expr = tle->expr;