aboutsummaryrefslogtreecommitdiff
path: root/src/include/parser
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-07-15 15:21:54 +0000
committerBruce Momjian <bruce@momjian.us>1999-07-15 15:21:54 +0000
commit4b2c2850bf243cfa4a7b4cbd2e60ba1791c098fb (patch)
tree35742cac274127492f314850d8baca1215a1e68e /src/include/parser
parent0df761420d30e89fa606e34795e5f3da0713d6f6 (diff)
downloadpostgresql-4b2c2850bf243cfa4a7b4cbd2e60ba1791c098fb.tar.gz
postgresql-4b2c2850bf243cfa4a7b4cbd2e60ba1791c098fb.zip
Clean up #include in /include directory. Add scripts for checking includes.
Diffstat (limited to 'src/include/parser')
-rw-r--r--src/include/parser/parse_agg.h5
-rw-r--r--src/include/parser/parse_clause.h6
-rw-r--r--src/include/parser/parse_coerce.h4
-rw-r--r--src/include/parser/parse_expr.h6
-rw-r--r--src/include/parser/parse_func.h7
-rw-r--r--src/include/parser/parse_node.h6
-rw-r--r--src/include/parser/parse_oper.h5
-rw-r--r--src/include/parser/parse_relation.h7
-rw-r--r--src/include/parser/parse_target.h6
-rw-r--r--src/include/parser/parsetree.h5
10 files changed, 16 insertions, 41 deletions
diff --git a/src/include/parser/parse_agg.h b/src/include/parser/parse_agg.h
index 0801592882b..64a6e3a65e2 100644
--- a/src/include/parser/parse_agg.h
+++ b/src/include/parser/parse_agg.h
@@ -6,16 +6,13 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_agg.h,v 1.10 1999/05/25 22:43:16 momjian Exp $
+ * $Id: parse_agg.h,v 1.11 1999/07/15 15:21:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_AGG_H
#define PARSE_AGG_H
-#include <nodes/nodes.h>
-#include <nodes/parsenodes.h>
-#include <nodes/primnodes.h>
#include <parser/parse_node.h>
extern void AddAggToParseState(ParseState *pstate, Aggref *aggref);
diff --git a/src/include/parser/parse_clause.h b/src/include/parser/parse_clause.h
index 82cac2e233e..2b3dddad5c1 100644
--- a/src/include/parser/parse_clause.h
+++ b/src/include/parser/parse_clause.h
@@ -6,17 +6,13 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_clause.h,v 1.9 1999/05/26 12:56:41 momjian Exp $
+ * $Id: parse_clause.h,v 1.10 1999/07/15 15:21:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_CLAUSE_H
#define PARSE_CLAUSE_H
-#include <nodes/pg_list.h>
-#include <nodes/nodes.h>
-#include <nodes/parsenodes.h>
-#include <nodes/primnodes.h>
#include <parser/parse_node.h>
extern void makeRangeTable(ParseState *pstate, char *relname, List *frmList, Node **qual);
diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h
index a8ce037d590..59764217355 100644
--- a/src/include/parser/parse_coerce.h
+++ b/src/include/parser/parse_coerce.h
@@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_coerce.h,v 1.13 1999/07/14 01:20:25 momjian Exp $
+ * $Id: parse_coerce.h,v 1.14 1999/07/15 15:21:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_COERCE_H
#define PARSE_COERCE_H
-#include "nodes/pg_list.h"
#include "parser/parse_node.h"
+#include "catalog/pg_type.h"
typedef enum CATEGORY
{
diff --git a/src/include/parser/parse_expr.h b/src/include/parser/parse_expr.h
index 285b00f3f7a..0913ce3bbaa 100644
--- a/src/include/parser/parse_expr.h
+++ b/src/include/parser/parse_expr.h
@@ -6,17 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_expr.h,v 1.11 1999/05/26 12:56:41 momjian Exp $
+ * $Id: parse_expr.h,v 1.12 1999/07/15 15:21:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_EXPR_H
#define PARSE_EXPR_H
-#include <nodes/nodes.h>
-#include <nodes/parsenodes.h>
-#include <nodes/primnodes.h>
#include <parser/parse_node.h>
+#include "parser/parse_type.h"
extern Node *transformExpr(ParseState *pstate, Node *expr, int precedence);
extern Oid exprType(Node *expr);
diff --git a/src/include/parser/parse_func.h b/src/include/parser/parse_func.h
index d3441a0ce89..de3487183ab 100644
--- a/src/include/parser/parse_func.h
+++ b/src/include/parser/parse_func.h
@@ -6,18 +6,13 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_func.h,v 1.16 1999/06/17 22:21:40 tgl Exp $
+ * $Id: parse_func.h,v 1.17 1999/07/15 15:21:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSER_FUNC_H
#define PARSER_FUNC_H
-#include <nodes/nodes.h>
-#include <nodes/pg_list.h>
-#include <nodes/parsenodes.h>
-#include <nodes/primnodes.h>
-#include <parser/parse_func.h>
#include <parser/parse_node.h>
diff --git a/src/include/parser/parse_node.h b/src/include/parser/parse_node.h
index 9bc4cf2b13b..5a56b5fb75b 100644
--- a/src/include/parser/parse_node.h
+++ b/src/include/parser/parse_node.h
@@ -5,18 +5,14 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_node.h,v 1.12 1999/05/13 07:29:19 tgl Exp $
+ * $Id: parse_node.h,v 1.13 1999/07/15 15:21:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_NODE_H
#define PARSE_NODE_H
-#include <nodes/nodes.h>
-#include <nodes/pg_list.h>
-#include <nodes/primnodes.h>
#include <nodes/parsenodes.h>
-#include <parser/parse_type.h>
#include <utils/rel.h>
/* state information used during parse analysis */
diff --git a/src/include/parser/parse_oper.h b/src/include/parser/parse_oper.h
index 0c54a55326f..82e241ef87e 100644
--- a/src/include/parser/parse_oper.h
+++ b/src/include/parser/parse_oper.h
@@ -6,15 +6,14 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_oper.h,v 1.7 1999/02/13 23:21:57 momjian Exp $
+ * $Id: parse_oper.h,v 1.8 1999/07/15 15:21:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_OPER_H
#define PARSE_OPER_H
-#include <parser/parse_func.h>
-#include <parser/parse_node.h>
+#include "access/htup.h"
typedef HeapTuple Operator;
diff --git a/src/include/parser/parse_relation.h b/src/include/parser/parse_relation.h
index 5240dcc28d9..12c47636b6a 100644
--- a/src/include/parser/parse_relation.h
+++ b/src/include/parser/parse_relation.h
@@ -6,19 +6,14 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_relation.h,v 1.9 1999/02/13 23:21:57 momjian Exp $
+ * $Id: parse_relation.h,v 1.10 1999/07/15 15:21:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_QUERY_H
#define PARSE_RANGE_H
-#include <nodes/nodes.h>
-#include <nodes/parsenodes.h>
-#include <nodes/pg_list.h>
-#include <nodes/primnodes.h>
#include <parser/parse_node.h>
-#include <utils/rel.h>
extern RangeTblEntry *refnameRangeTableEntry(ParseState *pstate, char *refname);
extern int refnameRangeTablePosn(ParseState *pstate,
diff --git a/src/include/parser/parse_target.h b/src/include/parser/parse_target.h
index 2a70b5dde32..d54ce32d83b 100644
--- a/src/include/parser/parse_target.h
+++ b/src/include/parser/parse_target.h
@@ -6,17 +6,13 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_target.h,v 1.12 1999/05/17 17:03:46 momjian Exp $
+ * $Id: parse_target.h,v 1.13 1999/07/15 15:21:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_TARGET_H
#define PARSE_TARGET_H
-#include <nodes/pg_list.h>
-#include <nodes/nodes.h>
-#include <nodes/parsenodes.h>
-#include <nodes/primnodes.h>
#include <parser/parse_node.h>
#define EXPR_COLUMN_FIRST 1
diff --git a/src/include/parser/parsetree.h b/src/include/parser/parsetree.h
index a28520ff934..1f6767d662e 100644
--- a/src/include/parser/parsetree.h
+++ b/src/include/parser/parsetree.h
@@ -7,13 +7,16 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsetree.h,v 1.6 1999/02/13 23:21:57 momjian Exp $
+ * $Id: parsetree.h,v 1.7 1999/07/15 15:21:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSETREE_H
#define PARSETREE_H /* include once only */
+#include "nodes/parsenodes.h"
+#include "nodes/pg_list.h"
+
/* ----------------
* need pg_list.h for definitions of CAR(), etc. macros
* ----------------