1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

All external function definitions now have prototypes that are checked.

This commit is contained in:
Bruce Momjian
1996-11-10 03:06:38 +00:00
parent bf5cbbf789
commit aaeef4d17d
99 changed files with 551 additions and 322 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.13 1996/11/08 05:57:25 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.14 1996/11/10 03:01:10 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -89,7 +89,8 @@ static void parseCheckAggregates(ParseState *pstate, Query *qry);
*/
ParseState*
makeParseState() {
makeParseState(void)
{
ParseState *pstate;
pstate = malloc(sizeof(ParseState));

View File

@ -6,7 +6,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.8 1996/11/08 05:57:29 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.9 1996/11/10 03:01:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -83,10 +83,6 @@ static char *attnum_type[SPECIALS] = {
#define MAXFARGS 8 /* max # args to a c or postquel function */
static Oid **argtype_inherit();
static Oid **genxprod();
static int findsupers(Oid relid, Oid **supervec);
/*
* This structure is used to explore the inheritance hierarchy above
* nodes in the type tree in order to disambiguate among polymorphic
@ -108,6 +104,10 @@ typedef struct _CandidateList {
struct _CandidateList *next;
} *CandidateList;
static Oid **argtype_inherit(int nargs, Oid *oid_array);
static Oid **genxprod(InhPaths *arginh, int nargs);
static int findsupers(Oid relid, Oid **supervec);
/* check to see if a type id is valid,
* returns true if it is. By using this call before calling
* get_id_type or get_id_typname, more meaningful error messages
@ -241,7 +241,7 @@ tbyvalue(Type t)
}
/* given a type, return its typetype ('c' for 'c'atalog types) */
char
static char
typetypetype(Type t)
{
TypeTupleForm typ;

View File

@ -6,7 +6,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.8 1996/11/10 02:23:15 bryanh Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.9 1996/11/10 03:01:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -118,7 +118,6 @@ fixupsets(Query *parse)
return;
define_sets(parse);
}
#endif
#ifdef SETS_FIXED
/* Recursively find all of the Consts in the parsetree. Some of
@ -175,8 +174,8 @@ define_sets(Node *clause)
define_sets(get_leftop (clause));
define_sets(get_rightop (clause));
}
#endif
}
#endif
#define PSIZE(PTR) (*((int32 *)(PTR) - 1))
Node *