提交 57de92c6 编写于 作者: V Vadim B. Mikheev

Move definition of PageIsNew from hio.c to here

上级 46606ab0
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: bufpage.h,v 1.1 1996/08/28 01:58:03 scrappy Exp $
* $Id: bufpage.h,v 1.2 1996/10/18 07:39:07 vadim Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -166,6 +166,13 @@ typedef enum {
(((PageHeader) (page))->pd_lower == \
(sizeof(PageHeaderData) - sizeof(ItemIdData)) ? true : false)
/*
* PageIsNew --
* returns true iff page is not initialized (by PageInit)
*/
#define PageIsNew(page) (((PageHeader) (page))->pd_upper == 0)
/*
* PageGetItemId --
* Returns an item identifier of a page.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册