head	1.9;
access;
symbols
	release_4_2:1.9
	aix_ok:1.9
	Version_2_1:1.7
	Version_2:1.6
	C_Demo_1:1.4;
locks; strict;
comment	@ * @;


1.9
date	91.09.30.10.12.49;	author glass;	state Exp;
branches;
next	1.8;

1.8
date	91.04.28.09.15.31;	author cimarron;	state Exp;
branches;
next	1.7;

1.7
date	90.08.17.08.53.34;	author cimarron;	state Exp;
branches;
next	1.6;

1.6
date	89.09.25.11.25.10;	author cimarron;	state Version_2;
branches;
next	1.5;

1.5
date	89.09.21.19.12.55;	author hirohama;	state Exp;
branches;
next	1.4;

1.4
date	89.09.05.17.09.33;	author mao;	state C_Demo_1;
branches;
next	1.3;

1.3
date	89.04.12.19.55.26;	author dillon;	state Exp;
branches;
next	1.2;

1.2
date	89.03.22.17.34.09;	author muir;	state Stab;
branches;
next	1.1;

1.1
date	89.01.17.05.54.38;	author cimarron;	state Exp;
branches;
next	;


desc
@@


1.9
log
@initial ansi c compatibility changes: fixed inheritance and limited prototypes
@
text
@/*
 * part.h --
 *	POSTGRES "partition" definitions.
 */

#ifndef	PartIncluded		/* Include this file only once */
#define PartIncluded	1

/*
 * Identification:
 */
#define PART_H	"$Header: RCS/part.h,v 1.8 91/04/28 09:15:31 cimarron Exp $"

#include "tmp/c.h"
#include "storage/page.h"

typedef uint32	PagePartition;	/* subpage partition indicator */

#define SinglePagePartition	0	/* partition when 1 page per block */

#define InvalidPagePartition	((PagePartition) 0)

/*
 * PagePartitionIsValid --
 *	True iff the page partition is valid.
 */
#define PagePartitionIsValid(partition) \
    ((bool) ((partition) != InvalidPagePartition))

/*
 * CreatePagePartition --
 *	Returns a new page partition.
 */
extern
PagePartition
CreatePagePartition();/* BAD PROTOTYPE DELETED -- glass */
/*ARGS((
	BlockSize	blockSize,
	PageSize	pageSize
)); */

/*
 * PagePartitionGetPagesPerBlock --
 *	Returns the count pages for the disk block associated with
 *	this page partition.
 */
extern
Count
PagePartitionGetPagesPerBlock ARGS((
	PagePartition	partition
));

#endif	/* !defined(PartIncluded) */
@


1.8
log
@Converted IsValid code into macros and added an improved NodeIsType scheme
@
text
@d12 1
a12 1
#define PART_H	"$Header: RCS/part.h,v 1.7 90/08/17 08:53:34 cimarron Exp Locker: cimarron $"
d36 2
a37 1
CreatePagePartition ARGS((
d40 1
a40 1
));
@


1.7
log
@added pathnames to #include statements
@
text
@d12 1
a12 1
#define PART_H	"$Header: RCS/part.h,v 1.6 89/09/25 11:25:10 cimarron Version_2 Locker: cimarron $"
d21 2
d27 2
a28 5
extern
bool
PagePartitionIsValid ARGS((
	PagePartition	partition
));
@


1.6
log
@moved dynamic symbol stuff to syms.h
@
text
@d12 1
a12 1
#define PART_H	"$Header: RCS/part.h,v 1.5 89/09/21 19:12:55 hirohama Exp $"
d14 2
a15 7
#ifndef C_H
#include "c.h"
#endif

#ifndef	PAGE_H
# include "page.h"
#endif
@


1.5
log
@added ...SYMBOLS declarations
miscellaneous cleanup
@
text
@d12 1
a12 1
#define PART_H	"$Header: RCS/part.h,v 1.4 89/09/05 17:09:33 mao C_Demo_1 Locker: hirohama $"
a56 5

#define PART_SYMBOLS \
	SymbolDecl(PagePartitionIsValid, "_PagePartitionIsValid"), \
	SymbolDecl(CreatePagePartition, "_CreatePagePartition"), \
	SymbolDecl(PagePartitionGetPagesPerBlock, "_PagePartitionGetPagesPerBlock")
@


1.4
log
@Working version of C-only demo
@
text
@a3 3
 *
 * Identification:
 *	$Header: /usr6/postgres/mao/postgres/src/lib/H/RCS/part.h,v 1.3 89/04/12 19:55:26 dillon Exp $
d6 1
a6 1
#ifndef	PartIncluded	/* Include this file only once. */
d9 5
d18 3
a20 1
#include "page.h"
d57 5
@


1.3
log
@c.h
@
text
@d6 1
a6 1
 *	$Header: /usr6/postgres/dillon/ptree/src/lib/H/RCS/part.h,v 1.2 89/03/22 17:34:09 muir Stab $
@


1.2
log
@copyright removal
@
text
@d6 1
a6 1
 *	$Header: /usr6/postgres/muir/postgres/src/lib/H/RCS/part.h,v 1.1 89/01/17 05:54:38 cimarron Exp $
d12 1
d14 1
@


1.1
log
@Initial revision
@
text
@a0 27

; /*
; * 
; * POSTGRES Data Base Management System
; * 
; * Copyright (c) 1988 Regents of the University of California
; * 
; * Permission to use, copy, modify, and distribute this software and its
; * documentation for educational, research, and non-profit purposes and
; * without fee is hereby granted, provided that the above copyright
; * notice appear in all copies and that both that copyright notice and
; * this permission notice appear in supporting documentation, and that
; * the name of the University of California not be used in advertising
; * or publicity pertaining to distribution of the software without
; * specific, written prior permission.  Permission to incorporate this
; * software into commercial products can be obtained from the Campus
; * Software Office, 295 Evans Hall, University of California, Berkeley,
; * Ca., 94720 provided only that the the requestor give the University
; * of California a free licence to any derived software for educational
; * and research purposes.  The University of California makes no
; * representations about the suitability of this software for any
; * purpose.  It is provided "as is" without express or implied warranty.
; * 
; */



d6 1
a6 1
 *	$Header: part.h,v 1.1 88/11/11 16:37:19 postgres Exp $
@
