*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/pg_aggregate.c,v 1.4 1996/11/08 00:44:32 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/pg_aggregate.c,v 1.5 1997/07/24 20:11:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Oid transtype;
text *textInitVal;
char *strInitVal, *initVal;
- extern char *textout();
Assert(PointerIsValid(aggName));
Assert(PointerIsValid(isNull));
*
* Copyright (c) 1994, Regents of the University of California
*
-* $Id: geqo_params.c,v 1.2 1997/02/19 14:52:04 scrappy Exp $
+* $Id: geqo_params.c,v 1.3 1997/07/24 20:12:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <time.h>
#include <math.h>
#include <ctype.h>
+#include <string.h>
#include "postgres.h"
#include "miscadmin.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.18 1997/05/22 00:14:41 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.19 1997/07/24 20:13:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
void
func_error(char *caller, char *funcname, int nargs, Oid *argtypes)
{
- Type get_id_type();
char p[(NAMEDATALEN+2)*MAXFMGRARGS], *ptr;
int i;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.18 1997/02/14 04:15:49 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.19 1997/07/24 20:13:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
vartype = ((Expr*)target)->typeOid;
if (basetype != vartype) {
- Type tp1, tp2, get_id_type();
+ Type tp1, tp2;
tp1 = get_id_type(basetype);
tp2 = get_id_type(vartype);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.2 1996/11/10 03:01:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.3 1997/07/24 20:13:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Oid event_attype = 0;
char *actionP, *event_qualP;
- extern Oid att_typeid();
-
if (event_obj->attrs)
eslot_string = strVal(lfirst(event_obj->attrs));
else
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.13 1997/04/18 08:30:08 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.14 1997/07/24 20:13:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
register int i;
int error = 0;
- void PrintBufferDescs();
for (i = 1; i <= NBuffers; i++) {
if (BufferIsValid(i)) {
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.3 1996/11/06 06:49:10 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.4 1997/07/24 20:14:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
Offset offsetToNewData;
SISegEntry *eP, *lastP;
- bool SISegFull();
- Offset SIEntryOffset();
- Offset SIGetStartFreeSpace();
- SISegEntry *SIGetFirstDataEntry();
- SISegEntry *SIGetNextDataEntry();
- SISegEntry *SIGetLastDataEntry();
if (!SIIncNumEntries(segP, 1))
return(false); /* no space */
SIDelDataEntry(SISeg *segP)
{
SISegEntry *e1P;
- SISegEntry *SIGetFirstDataEntry();
if (!SIDecNumEntries(segP, 1)) {
/* no entries in buffer */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.13 1997/05/22 17:08:33 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.14 1997/07/24 20:14:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
int fd, vfd;
char *path;
- extern bool IsBootstrapProcessingMode();
path = relpath(&(reln->rd_rel->relname.data[0]));
fd = FileNameOpenFile(path, O_RDWR|O_CREAT|O_EXCL, 0600);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.33 1997/04/24 03:39:09 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.34 1997/07/24 20:15:03 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
#include "executor/execdebug.h"
#include "executor/executor.h"
#include "nodes/relation.h"
+#include "nodes/print.h"
#include "optimizer/cost.h"
#include "optimizer/planner.h"
*/
if (IsUnderPostmaster == false) {
puts("\nPOSTGRES backend interactive interface");
- puts("$Revision: 1.33 $ $Date: 1997/04/24 03:39:09 $");
+ puts("$Revision: 1.34 $ $Date: 1997/07/24 20:15:03 $");
}
/* ----------------
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.17 1997/05/22 00:15:36 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.18 1997/07/24 20:15:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
char *viewName = stmt->name;
char *ruleName;
- extern char *RewriteGetRuleEventRel();
#ifndef NO_SECURITY
case T_LoadStmt:
{
LoadStmt *stmt = (LoadStmt *)parsetree;
- FILE *fp, *fopen();
+ FILE *fp;
char *filename;
commandTag = "LOAD";
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.9 1997/07/10 02:27:27 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.10 1997/07/24 20:15:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
HeapTuple htp;
char name[NAMEDATALEN+1];
- extern AclId get_grosysid();
Assert(s && aip && modechg);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.10 1996/11/08 05:59:38 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.11 1997/07/24 20:15:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
int n, *dim, *lb, st_pos, prod[MAXDIM];
int span[MAXDIM], dist[MAXDIM], indx[MAXDIM];
int i, j, inc;
- char *srcPtr, *array_seek();
+ char *srcPtr;
n = ARR_NDIM(array); dim = ARR_DIMS(array);
lb = ARR_LBOUND(array); srcPtr = ARR_DATA_PTR(array);
int span[MAXDIM], dist[MAXDIM], indx[MAXDIM];
int i, j, inc, st[MAXDIM], endp[MAXDIM];
int count = 0;
- char *ptr, *array_seek();
+ char *ptr;
n = ARR_NDIM(array); dim = ARR_DIMS(array);
lb = ARR_LBOUND(array); ptr = ARR_DATA_PTR(array);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.28 1997/07/08 22:06:36 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.29 1997/07/24 20:15:53 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*****************************************************************************/
/* definitions for squeezing values into "value" */
-#define ABS_SIGNBIT 0200
-#define VALMASK 0177
+#define ABS_SIGNBIT (char) 0200
+#define VALMASK (char) 0177
#define NEG(n) ((n)|ABS_SIGNBIT)
#define SIGNEDCHAR(c) ((c)&ABS_SIGNBIT? -((c)&VALMASK): (c))
#define FROMVAL(tp) (-SIGNEDCHAR((tp)->value) * 10) /* uncompress */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/filename.c,v 1.6 1997/02/14 04:17:47 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/filename.c,v 1.7 1997/07/24 20:16:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
char *
filename_in(char *file)
{
- char *str, *getenv();
+ char *str;
int ind = 0;
/*
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.6 1997/03/14 23:20:52 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.7 1997/07/24 20:16:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Oid oidin(char *s)
{
- extern int32 int4in();
-
return(int4in(s));
}
char *oidout(Oid o)
{
- extern char *int4out();
-
return(int4out(o));
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.15 1997/03/18 21:40:39 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.16 1997/07/24 20:16:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PG_STANDALONE
extern FILE *Pfout;
#endif /* !PG_STANDALONE */
- time_t time();
#ifdef ELOG_TIMESTAMPS
time_t tim;
#endif
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.6 1997/02/14 04:18:02 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.7 1997/07/24 20:16:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Form_pg_proc procedureStruct;
char *proname;
char *probinattr, *probinstring;
- func_ptr user_fn, handle_load();
+ func_ptr user_fn;
Relation rdesc;
bool isnull;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.8 1997/02/14 04:18:20 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.9 1997/07/24 20:17:34 momjian Exp $
*
* NOTES
* InitPostgres() is the function called from PostgresMain
void
InitCommunication()
{
- char *getenv(); /* XXX style */
char *postid;
char *postport;
IPCKey key = 0;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.4 1997/05/20 11:35:50 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.5 1997/07/24 20:18:07 momjian Exp $
*
* NOTES
* Sorts the first relation into the second relation. The sort may
register struct tapelst *tp;
FILE *file;
static int tapeinit = 0;
- char *mktemp();
tp = (struct tapelst *)palloc((unsigned)sizeof (struct tapelst));
if (!tapeinit) {
#define SOP(op, opnd) ((op)|(opnd))
/* operators meaning operand */
/* (back, fwd are offsets) */
-#define OEND (1<<OPSHIFT) /* endmarker - */
-#define OCHAR (2<<OPSHIFT) /* character unsigned char */
-#define OBOL (3<<OPSHIFT) /* left anchor - */
-#define OEOL (4<<OPSHIFT) /* right anchor - */
-#define OANY (5<<OPSHIFT) /* . - */
-#define OANYOF (6<<OPSHIFT) /* [...] set number */
-#define OBACK_ (7<<OPSHIFT) /* begin \d paren number */
-#define O_BACK (8<<OPSHIFT) /* end \d paren number */
-#define OPLUS_ (9<<OPSHIFT) /* + prefix fwd to suffix */
-#define O_PLUS (10<<OPSHIFT) /* + suffix back to prefix */
-#define OQUEST_ (11<<OPSHIFT) /* ? prefix fwd to suffix */
-#define O_QUEST (12<<OPSHIFT) /* ? suffix back to prefix */
-#define OLPAREN (13<<OPSHIFT) /* ( fwd to ) */
-#define ORPAREN (14<<OPSHIFT) /* ) back to ( */
-#define OCH_ (15<<OPSHIFT) /* begin choice fwd to OOR2 */
-#define OOR1 (16<<OPSHIFT) /* | pt. 1 back to OOR1 or OCH_ */
-#define OOR2 (17<<OPSHIFT) /* | pt. 2 fwd to OOR2 or O_CH */
-#define O_CH (18<<OPSHIFT) /* end choice back to OOR1 */
-#define OBOW (19<<OPSHIFT) /* begin word - */
-#define OEOW (20<<OPSHIFT) /* end word - */
+#define OEND ((size_t)1<<OPSHIFT) /* endmarker - */
+#define OCHAR ((size_t)2<<OPSHIFT) /* character unsigned char */
+#define OBOL ((size_t)3<<OPSHIFT) /* left anchor - */
+#define OEOL ((size_t)4<<OPSHIFT) /* right anchor - */
+#define OANY ((size_t)5<<OPSHIFT) /* . - */
+#define OANYOF ((size_t)6<<OPSHIFT) /* [...] set number */
+#define OBACK_ ((size_t)7<<OPSHIFT) /* begin \d paren number */
+#define O_BACK ((size_t)8<<OPSHIFT) /* end \d paren number */
+#define OPLUS_ ((size_t)9<<OPSHIFT) /* + prefix fwd to suffix */
+#define O_PLUS ((size_t)10<<OPSHIFT) /* + suffix back to prefix */
+#define OQUEST_ ((size_t)11<<OPSHIFT) /* ? prefix fwd to suffix */
+#define O_QUEST ((size_t)12<<OPSHIFT) /* ? suffix back to prefix */
+#define OLPAREN ((size_t)13<<OPSHIFT) /* ( fwd to ) */
+#define ORPAREN ((size_t)14<<OPSHIFT) /* ) back to ( */
+#define OCH_ ((size_t)15<<OPSHIFT) /* begin choice fwd to OOR2 */
+#define OOR1 ((size_t)16<<OPSHIFT) /* | pt. 1 back to OOR1 or OCH_ */
+#define OOR2 ((size_t)17<<OPSHIFT) /* | pt. 2 fwd to OOR2 or O_CH */
+#define O_CH ((size_t)18<<OPSHIFT) /* end choice back to OOR1 */
+#define OBOW ((size_t)19<<OPSHIFT) /* begin word - */
+#define OEOW ((size_t)20<<OPSHIFT) /* end word - */
/*
* Structure for [] character-set representation. Character sets are
AROPT:crs
-CFLAGS:-I$(SRCDIR)/backend/port/sparc_solaris
+CFLAGS:-I$(SRCDIR)/backend/port/sparc_solaris -Xa -v
SHARED_LIB:-K PIC
ALL:
SRCH_INC: