Commit c9c0e111 authored by Bruce Momjian's avatar Bruce Momjian

More compile cleanups

parent 8006c6f5
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.8 1996/11/08 06:24:58 bryanh Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.9 1996/11/08 20:45:16 momjian Exp $
* *
* DESCRIPTION * DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the * The "DefineFoo" routines take the parse tree and pick out the
...@@ -137,7 +137,7 @@ compute_full_attributes(const List *parameters, int32 *byte_pct_p, ...@@ -137,7 +137,7 @@ compute_full_attributes(const List *parameters, int32 *byte_pct_p,
if (sscanf(param->val, "%d", perbyte_cpu_p) == 0) { if (sscanf(param->val, "%d", perbyte_cpu_p) == 0) {
int count; int count;
char *ptr; char *ptr;
for (ptr = param->val; *ptr != '\0'; ptr++) for (count = 0, ptr = param->val; *ptr != '\0'; ptr++)
if (*ptr == '!') count++; if (*ptr == '!') count++;
*perbyte_cpu_p = (int) pow(10.0, (double) count); *perbyte_cpu_p = (int) pow(10.0, (double) count);
} }
......
...@@ -13,11 +13,12 @@ ...@@ -13,11 +13,12 @@
* columns. (ie. tuples from the same group are consecutive) * columns. (ie. tuples from the same group are consecutive)
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.3 1996/11/08 05:56:08 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.4 1996/11/08 20:45:20 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include "postgres.h" #include "postgres.h"
#include "fmgr.h"
#include "access/heapam.h" #include "access/heapam.h"
#include "catalog/catalog.h" #include "catalog/catalog.h"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeUnique.c,v 1.4 1996/11/08 05:56:19 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/executor/nodeUnique.c,v 1.5 1996/11/08 20:45:23 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* *
*/ */
#include "postgres.h" #include "postgres.h"
#include "fmgr.h"
#include "executor/executor.h" #include "executor/executor.h"
#include "executor/nodeUnique.h" #include "executor/nodeUnique.h"
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.13 1996/10/30 02:01:54 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.14 1996/11/08 20:45:33 momjian Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -32,10 +32,13 @@ ...@@ -32,10 +32,13 @@
*/ */
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include "postgres.h" #include "postgres.h"
#include "nodes/parsenodes.h" #include "nodes/parsenodes.h"
#include "parser/gramparse.h"
#include "parser/catalog_utils.h" #include "parser/catalog_utils.h"
#include "parser/parse_query.h" #include "parser/parse_query.h"
#include "storage/smgr.h"
#include "utils/acl.h" #include "utils/acl.h"
#include "catalog/catname.h" #include "catalog/catname.h"
#include "utils/elog.h" #include "utils/elog.h"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.6 1996/11/08 05:57:33 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.7 1996/11/08 20:45:42 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -19,22 +19,23 @@ ...@@ -19,22 +19,23 @@
#include "postgres.h" #include "postgres.h"
#include "parser/catalog_utils.h" #include "parser/catalog_utils.h"
#include "parser/gramparse.h"
#include "parser/parse_query.h"
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
#include "nodes/execnodes.h"
#include "nodes/makefuncs.h"
#include "nodes/primnodes.h"
#include "nodes/plannodes.h"
#include "nodes/relation.h"
#include "utils/builtins.h"
#include "utils/exc.h" #include "utils/exc.h"
#include "utils/excid.h" #include "utils/excid.h"
#include "utils/lsyscache.h"
#include "utils/palloc.h" #include "utils/palloc.h"
#include "utils/syscache.h" #include "utils/syscache.h"
#include "catalog/pg_aggregate.h" #include "catalog/pg_aggregate.h"
#include "catalog/pg_type.h" #include "catalog/pg_type.h"
#include "nodes/primnodes.h"
#include "nodes/plannodes.h"
#include "nodes/execnodes.h"
#include "nodes/relation.h"
#include "parser/parse_query.h"
#include "utils/builtins.h"
#include "utils/lsyscache.h"
#include "access/heapam.h" #include "access/heapam.h"
#include "nodes/makefuncs.h"
#include "optimizer/clauses.h" #include "optimizer/clauses.h"
void init_io(); /* from scan.l */ void init_io(); /* from scan.l */
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.2 1996/07/23 02:23:34 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.3 1996/11/08 20:45:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -27,12 +27,11 @@ ...@@ -27,12 +27,11 @@
#include "miscadmin.h" #include "miscadmin.h"
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
#include "nodes/parsenodes.h" #include "nodes/parsenodes.h"
#include "parser/gramparse.h"
#include "parser/keywords.h" #include "parser/keywords.h"
#include "parser/scansup.h" #include "parser/scansup.h"
#include "parser/sysfunc.h" #include "parser/sysfunc.h"
#include "parse.h" #include "parse.h"
#include "utils/elog.h"
#include "utils/palloc.h"
extern char *parseString; extern char *parseString;
extern char *parseCh; extern char *parseCh;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.4 1996/11/08 05:58:36 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.5 1996/11/08 20:45:51 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
#include "storage/ipc.h" #include "storage/ipc.h"
#include "storage/shmem.h" #include "storage/shmem.h"
#include "storage/spin.h" #include "storage/spin.h"
#include "utils/dynahash.h"
#include "utils/hsearch.h" #include "utils/hsearch.h"
/* shared memory global variables */ /* shared memory global variables */
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.6 1996/11/06 10:22:13 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.7 1996/11/08 20:45:57 momjian Exp $
# #
# NOTES # NOTES
# Passes any -D options on to cpp prior to generating the list # Passes any -D options on to cpp prior to generating the list
...@@ -81,7 +81,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf ...@@ -81,7 +81,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: Gen_fmgrtab.sh,v 1.6 1996/11/06 10:22:13 scrappy Exp $ * $Id: Gen_fmgrtab.sh,v 1.7 1996/11/08 20:45:57 momjian Exp $
* *
* NOTES * NOTES
* ****************************** * ******************************
...@@ -173,7 +173,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF ...@@ -173,7 +173,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.6 1996/11/06 10:22:13 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.7 1996/11/08 20:45:57 momjian Exp $
* *
* NOTES * NOTES
* *
...@@ -194,8 +194,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF ...@@ -194,8 +194,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
#include <limits.h> #include <limits.h>
#else #else
# if defined(BSD44_derived) || \ # if defined(BSD44_derived) || \
defined(bsdi) || \ defined(bsdi)
defined(bsdi_2_1)
# include <machine/limits.h> # include <machine/limits.h>
# define MAXINT INT_MAX # define MAXINT INT_MAX
# else # else
...@@ -226,7 +225,7 @@ static int fmgr_nbuiltins = (sizeof(fmgr_builtins) / sizeof(FmgrCall)) - 1; ...@@ -226,7 +225,7 @@ static int fmgr_nbuiltins = (sizeof(fmgr_builtins) / sizeof(FmgrCall)) - 1;
FmgrCall *fmgr_isbuiltin(Oid id) FmgrCall *fmgr_isbuiltin(Oid id)
{ {
register int i; register int i = 0;
int low = 0; int low = 0;
int high = fmgr_nbuiltins; int high = fmgr_nbuiltins;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.4 1996/11/08 06:00:23 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.5 1996/11/08 20:46:07 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -70,7 +70,6 @@ static uint32 call_hash(HTAB *hashp, char *k, int len); ...@@ -70,7 +70,6 @@ static uint32 call_hash(HTAB *hashp, char *k, int len);
static SEG_OFFSET seg_alloc(HTAB *hashp); static SEG_OFFSET seg_alloc(HTAB *hashp);
static int bucket_alloc(HTAB *hashp); static int bucket_alloc(HTAB *hashp);
static int dir_realloc(HTAB *hashp); static int dir_realloc(HTAB *hashp);
static int my_log2(long num);
typedef long * ((*dhalloc_ptr)()); typedef long * ((*dhalloc_ptr)());
......
*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
* *
* psql.c-- * psql.c--
* an interactive front-end to postgres95 * an interactive front-end to postgres95
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.25 1996/11/08 06:01:33 momjian Exp $ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.26 1996/11/08 20:46:19 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
......
/*-------------------------------------------------------------------------
*
* gramparse.h--
* scanner support routines. used by both the bootstrap lexer
* as well as the normal lexer
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: gramparse.h,v 1.1 1996/11/08 20:46:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef GRAMPARSE_H
#define GRAMPARSE_H /* include once only */
/* from scan.l */
extern void init_io();
/* from gram.y */
extern void parser_init(Oid *typev, int nargs);
extern int yyparse();
#endif /* GRAMPARSE_H */
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: smgr.h,v 1.3 1996/11/08 06:02:22 momjian Exp $ * $Id: smgr.h,v 1.4 1996/11/08 20:46:33 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -83,6 +83,7 @@ extern int mmabort(void); ...@@ -83,6 +83,7 @@ extern int mmabort(void);
extern int MMShmemSize(void); extern int MMShmemSize(void);
/* smgrtype.c */ /* smgrtype.c */
char *smgrout(int2 i); extern char *smgrout(int2 i);
extern int2 smgrin(char *s);
#endif /* SMGR_H */ #endif /* SMGR_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment