1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

Used modified version of indent that understands over 100 typedefs.

This commit is contained in:
Bruce Momjian
1997-09-08 21:56:23 +00:00
parent 075cede748
commit 59f6a57e59
413 changed files with 4472 additions and 4460 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/Attic/archive.c,v 1.3 1997/09/08 02:24:41 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/Attic/archive.c,v 1.4 1997/09/08 21:45:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -26,7 +26,7 @@
#include "commands/creatinh.h"
void
plan_archive(List * rt)
plan_archive(List *rt)
{
List *rtitem;
RangeTblEntry *rte;

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.5 1997/09/08 02:24:42 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.6 1997/09/08 21:45:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -24,17 +24,17 @@
#include "utils/lsyscache.h"
static Expr *pull_args(Expr * qual);
static List *pull_ors(List * orlist);
static List *pull_ands(List * andlist);
static Expr *find_nots(Expr * qual);
static Expr *push_nots(Expr * qual);
static Expr *normalize(Expr * qual);
static List *or_normalize(List * orlist);
static List *distribute_args(List * item, List * args);
static List *qualcleanup(Expr * qual);
static List *remove_ands(Expr * qual);
static List *remove_duplicates(List * list);
static Expr *pull_args(Expr *qual);
static List *pull_ors(List *orlist);
static List *pull_ands(List *andlist);
static Expr *find_nots(Expr *qual);
static Expr *push_nots(Expr *qual);
static Expr *normalize(Expr *qual);
static List *or_normalize(List *orlist);
static List *distribute_args(List *item, List *args);
static List *qualcleanup(Expr *qual);
static List *remove_ands(Expr *qual);
static List *remove_duplicates(List *list);
/*
* preprocess-qualification--
@@ -48,7 +48,7 @@ static List *remove_duplicates(List * list);
* normal form (see cnfify() below )
*/
List *
preprocess_qualification(Expr * qual, List * tlist, List ** existentialQualPtr)
preprocess_qualification(Expr *qual, List *tlist, List **existentialQualPtr)
{
List *cnf_qual = cnfify(qual, true);
@@ -101,7 +101,7 @@ preprocess_qualification(Expr * qual, List * tlist, List ** existentialQualPtr)
*
*/
List *
cnfify(Expr * qual, bool removeAndFlag)
cnfify(Expr *qual, bool removeAndFlag)
{
Expr *newqual = NULL;
@@ -134,7 +134,7 @@ cnfify(Expr * qual, bool removeAndFlag)
*
*/
static Expr *
pull_args(Expr * qual)
pull_args(Expr *qual)
{
if (qual == NULL)
return (NULL);
@@ -182,7 +182,7 @@ pull_args(Expr * qual)
* Returns the modified list.
*/
static List *
pull_ors(List * orlist)
pull_ors(List *orlist)
{
if (orlist == NIL)
return (NIL);
@@ -208,7 +208,7 @@ pull_ors(List * orlist)
* Returns the modified list.
*/
static List *
pull_ands(List * andlist)
pull_ands(List *andlist)
{
if (andlist == NIL)
return (NIL);
@@ -237,7 +237,7 @@ pull_ands(List * andlist)
*
*/
static Expr *
find_nots(Expr * qual)
find_nots(Expr *qual)
{
if (qual == NULL)
return (NULL);
@@ -286,7 +286,7 @@ find_nots(Expr * qual)
*
*/
static Expr *
push_nots(Expr * qual)
push_nots(Expr *qual)
{
if (qual == NULL)
return (NULL);
@@ -373,7 +373,7 @@ push_nots(Expr * qual)
*
*/
static Expr *
normalize(Expr * qual)
normalize(Expr *qual)
{
if (qual == NULL)
return (NULL);
@@ -438,7 +438,7 @@ normalize(Expr * qual)
*
*/
static List *
or_normalize(List * orlist)
or_normalize(List *orlist)
{
List *distributable = NIL;
List *new_orlist = NIL;
@@ -477,7 +477,7 @@ or_normalize(List * orlist)
*
*/
static List *
distribute_args(List * item, List * args)
distribute_args(List *item, List *args)
{
List *or_list = NIL;
List *n_list = NIL;
@@ -507,7 +507,7 @@ distribute_args(List * item, List * args)
*
*/
static List *
qualcleanup(Expr * qual)
qualcleanup(Expr *qual)
{
if (qual == NULL)
return (NIL);
@@ -568,7 +568,7 @@ qualcleanup(Expr * qual)
* MODIFIES: qual
*/
static List *
remove_ands(Expr * qual)
remove_ands(Expr *qual)
{
List *t_list = NIL;
@@ -621,7 +621,7 @@ remove_ands(Expr * qual)
*/
#ifdef NOT_USED
static List *
update_relations(List * tlist)
update_relations(List *tlist)
{
return (NIL);
}
@@ -635,7 +635,7 @@ update_relations(List * tlist)
*****************************************************************************/
static List *
remove_duplicates(List * list)
remove_duplicates(List *list)
{
List *i;
List *j;

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/preptlist.c,v 1.4 1997/09/08 02:24:44 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/preptlist.c,v 1.5 1997/09/08 21:45:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -34,11 +34,11 @@
#include "optimizer/tlist.h"
static List *
expand_targetlist(List * tlist, Oid relid, int command_type,
expand_targetlist(List *tlist, Oid relid, int command_type,
Index result_relation);
static List *
replace_matching_resname(List * new_tlist,
List * old_tlist);
replace_matching_resname(List *new_tlist,
List *old_tlist);
static List *
new_relation_targetlist(Oid relid, Index rt_index,
NodeTag node_type);
@@ -55,10 +55,10 @@ new_relation_targetlist(Oid relid, Index rt_index,
* Returns the new targetlist.
*/
List *
preprocess_targetlist(List * tlist,
preprocess_targetlist(List *tlist,
int command_type,
Index result_relation,
List * range_table)
List *range_table)
{
List *expanded_tlist = NIL;
Oid relid = InvalidOid;
@@ -144,7 +144,7 @@ preprocess_targetlist(List * tlist,
* Returns the expanded target list, sorted in resno order.
*/
static List *
expand_targetlist(List * tlist,
expand_targetlist(List *tlist,
Oid relid,
int command_type,
Index result_relation)
@@ -178,7 +178,7 @@ expand_targetlist(List * tlist,
static List *
replace_matching_resname(List * new_tlist, List * old_tlist)
replace_matching_resname(List *new_tlist, List *old_tlist)
{
List *temp,
*i;

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.5 1997/09/08 02:24:47 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.6 1997/09/08 21:45:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -35,21 +35,21 @@
#include "optimizer/prep.h"
static List *
plan_union_query(List * relids, Index rt_index,
RangeTblEntry * rt_entry, Query * parse, UnionFlag flag,
List ** union_rtentriesPtr);
plan_union_query(List *relids, Index rt_index,
RangeTblEntry *rt_entry, Query *parse, UnionFlag flag,
List **union_rtentriesPtr);
static RangeTblEntry *
new_rangetable_entry(Oid new_relid,
RangeTblEntry * old_entry);
RangeTblEntry *old_entry);
static Query *
subst_rangetable(Query * root, Index index,
RangeTblEntry * new_entry);
subst_rangetable(Query *root, Index index,
RangeTblEntry *new_entry);
static void
fix_parsetree_attnums(Index rt_index, Oid old_relid,
Oid new_relid, Query * parsetree);
Oid new_relid, Query *parsetree);
static Append *
make_append(List * unionplans, Index rt_index,
List * union_rt_entries, List * tlist);
make_append(List *unionplans, Index rt_index,
List *union_rt_entries, List *tlist);
/*
@@ -59,8 +59,8 @@ make_append(List * unionplans, Index rt_index,
* lists.
*/
List *
find_all_inheritors(List * unexamined_relids,
List * examined_relids)
find_all_inheritors(List *unexamined_relids,
List *examined_relids)
{
List *new_inheritors = NIL;
List *new_examined_relids = NIL;
@@ -103,7 +103,7 @@ find_all_inheritors(List * unexamined_relids,
* Returns a rangetable index., Returns -1 if no matches
*/
int
first_matching_rt_entry(List * rangetable, UnionFlag flag)
first_matching_rt_entry(List *rangetable, UnionFlag flag)
{
int count = 0;
List *temp = NIL;
@@ -143,7 +143,7 @@ first_matching_rt_entry(List * rangetable, UnionFlag flag)
*/
Append *
plan_union_queries(Index rt_index,
Query * parse,
Query *parse,
UnionFlag flag)
{
List *rangetable = parse->rtable;
@@ -226,12 +226,12 @@ plan_union_queries(Index rt_index,
* in union_rtentries.
*/
static List *
plan_union_query(List * relids,
plan_union_query(List *relids,
Index rt_index,
RangeTblEntry * rt_entry,
Query * root,
RangeTblEntry *rt_entry,
Query *root,
UnionFlag flag,
List ** union_rtentriesPtr)
List **union_rtentriesPtr)
{
List *i;
List *union_plans = NIL;
@@ -286,7 +286,7 @@ plan_union_query(List * relids,
* Returns a copy of 'old-entry' with the parameters substituted.
*/
static RangeTblEntry *
new_rangetable_entry(Oid new_relid, RangeTblEntry * old_entry)
new_rangetable_entry(Oid new_relid, RangeTblEntry *old_entry)
{
RangeTblEntry *new_entry = copyObject(old_entry);
@@ -308,7 +308,7 @@ new_rangetable_entry(Oid new_relid, RangeTblEntry * old_entry)
* Returns a new copy of 'root'.
*/
static Query *
subst_rangetable(Query * root, Index index, RangeTblEntry * new_entry)
subst_rangetable(Query *root, Index index, RangeTblEntry *new_entry)
{
Query *new_root = copyObject(root);
List *temp = NIL;
@@ -325,7 +325,7 @@ static void
fix_parsetree_attnums_nodes(Index rt_index,
Oid old_relid,
Oid new_relid,
Node * node)
Node *node)
{
if (node == NULL)
return;
@@ -396,7 +396,7 @@ static void
fix_parsetree_attnums(Index rt_index,
Oid old_relid,
Oid new_relid,
Query * parsetree)
Query *parsetree)
{
if (old_relid == new_relid)
return;
@@ -408,10 +408,10 @@ fix_parsetree_attnums(Index rt_index,
}
static Append *
make_append(List * unionplans,
make_append(List *unionplans,
Index rt_index,
List * union_rt_entries,
List * tlist)
List *union_rt_entries,
List *tlist)
{
Append *node = makeNode(Append);