From b2096a55121850ac6189081f682d3ced19aa8574 Mon Sep 17 00:00:00 2001 From: Thomas G. Lockhart Date: Fri, 7 Apr 2000 13:28:37 +0000 Subject: Clean up directory to compile and run on my Linux box at least. Note that there is some trouble with inconsistant input/output formats. --- contrib/bit/postgres.h | 74 -------------------------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 contrib/bit/postgres.h (limited to 'contrib/bit/postgres.h') diff --git a/contrib/bit/postgres.h b/contrib/bit/postgres.h deleted file mode 100644 index 44da5d7ac61..00000000000 --- a/contrib/bit/postgres.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef POSTGRES_H -#define POSTGRES_H - -#include - -typedef char bool; -typedef signed char int8; -typedef signed short int16; -typedef signed int int32; - -/*#define NULL ((void *) 0)*/ -#define Min(x, y) ((x) < (y) ? (x) : (y)) -#define Max(x, y) ((x) > (y) ? (x) : (y)) -#define PointerIsValid(pointer) (bool)((void*)(pointer) != NULL) - - -typedef unsigned int Oid; -typedef int16 int2; -typedef int32 int4; -typedef float float4; -typedef double float8; -typedef unsigned char uint8; /* == 8 bits */ -typedef unsigned short uint16; /* == 16 bits */ -typedef unsigned int uint32; /* == 32 bits */ -typedef uint8 bits8; /* >= 8 bits */ -typedef uint16 bits16; /* >= 16 bits */ -typedef uint32 bits32; /* >= 32 bits */ - - -typedef int4 aclitem; - -#define InvalidOid 0 -#define OidIsValid(objectId) ((bool) (objectId != InvalidOid)) - -/* unfortunately, both regproc and RegProcedure are used */ -typedef Oid regproc; -typedef Oid RegProcedure; - -typedef char *((*func_ptr) ()); - - -#define RegProcedureIsValid(p) OidIsValid(p) - -/* ---------------------------------------------------------------- - * Section 2: variable length and array types - * ---------------------------------------------------------------- - */ -/* ---------------- - * struct varlena - * ---------------- - */ -struct varlena -{ - int32 vl_len; - char vl_dat[1]; -}; - -#define VARSIZE(PTR) (((struct varlena *)(PTR))->vl_len) -#define VARDATA(PTR) (((struct varlena *)(PTR))->vl_dat) -#define VARHDRSZ sizeof(int32) - -typedef struct varlena bytea; -typedef struct varlena text; - -typedef int2 int28[8]; -typedef Oid oid8[8]; - -#define ERROR stderr -#define elog fprintf - -#define MaxAttrSize 10000 - -#define palloc malloc -#endif -- cgit v1.2.3