head     1.5;
branch   ;
access   ;
symbols  Version_2_1:1.5 C_Demo_1:1.4;
locks    ; strict;
comment  @ * @;


1.5
date     90.09.25.16.46.39;  author kemnitz;  state Exp;
branches ;
next     1.4;

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

1.3
date     89.02.02.15.47.50;  author dillon;  state Stab;
branches ;
next     1.2;

1.2
date     89.02.02.15.42.05;  author dillon;  state Exp;
branches ;
next     1.1;

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


desc
@@


1.5
log
@Updating from revision 1.4 to revision 1.5
@
text
@/*
 * pagenum.c --
 *	POSTGRES page number code.
 *
 * related to internal_page.h, not internal.h
 */

#include "tmp/c.h"
#include "storage/part.h"
#include "storage/pagenum.h"

RcsId("$Header: RCS/pagenum.c,v 1.5 90/08/14 16:05:11 cimarron Exp $");

bool
PageNumberIsValid(pageNumber, partition)
	PageNumber	pageNumber;
	PagePartition	partition;
{
	return ((bool)(pageNumber < PagePartitionGetPagesPerBlock(partition)));
}


bool
LogicalPageNumberIsValid(pageNumber)
	LogicalPageNumber	pageNumber;
{
	return ((bool)(pageNumber != InvalidLogicalPageNumber));
}
@


1.4
log
@Working version of C-only demo
@
text
@d8 3
a10 1
#include "c.h"
d12 1
a12 5
#include "part.h"

#include "pagenum.h"

RcsId("$Header: /usr6/postgres/mao/postgres/src/storage/page/RCS/pagenum.c,v 1.3 89/02/02 15:47:50 dillon Stab $");
@


1.3
log
@Txfer from old tree
@
text
@d14 1
a14 1
RcsId("$Header: pagenum.c,v 1.2 89/02/02 15:42:05 dillon Locked $");
@


1.2
log
@Txfer from old tree
@
text
@d4 2
d14 1
a14 1
RcsId("$Header: pagenum.c,v 1.2 88/08/18 18:24:29 dillon Locked $");
@


1.1
log
@Initial revision
@
text
@a0 1

a1 26
 * 
 * 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.
 * 
 */



/*
d12 1
a12 1
RcsId("$Header: pagenum.c,v 1.1 88/11/11 16:36:06 postgres Exp $");
@
