~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/storage/itempos.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * itempos.h
 
4
 *        Standard POSTGRES buffer page long item subposition definitions.
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
 
8
 * Portions Copyright (c) 1994, Regents of the University of California
 
9
 *
 
10
 * $PostgreSQL: pgsql/src/include/storage/itempos.h,v 1.20 2004-12-31 22:03:42 pgsql Exp $
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef ITEMPOS_H
 
15
#define ITEMPOS_H
 
16
 
 
17
#include "storage/buf.h"
 
18
#include "storage/itemid.h"
 
19
 
 
20
typedef struct ItemSubpositionData
 
21
{
 
22
        Buffer          op_db;
 
23
        ItemId          op_lpp;
 
24
        char       *op_cp;                      /* XXX */
 
25
        uint32          op_len;
 
26
}       ItemSubpositionData;
 
27
 
 
28
typedef ItemSubpositionData *ItemSubposition;
 
29
 
 
30
/*
 
31
 *              PNOBREAK(OBJP, LEN)
 
32
 *              struct  objpos  *OBJP;
 
33
 *              unsigned                LEN;
 
34
 */
 
35
#define PNOBREAK(OBJP, LEN)             ((OBJP)->op_len >= LEN)
 
36
 
 
37
/*
 
38
 *              PSKIP(OBJP, LEN)
 
39
 *              struct  objpos  *OBJP;
 
40
 *              unsigned                LEN;
 
41
 */
 
42
#define PSKIP(OBJP, LEN)\
 
43
                do { (OBJP)->op_cp += (LEN); (OBJP)->op_len -= (LEN); } while (0)
 
44
 
 
45
#endif   /* ITEMPOS_H */