home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / bbsfiles / flkn6-4.arj / BTREE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-09-28  |  919 b   |  28 lines

  1. /*    Copyright (c) 1987 Shrier and Deihl. Licensed to Mix Software, Inc.
  2.  
  3.     btree.h - include file for btree.c module
  4.  
  5.     Note: ctlrec.h must be included before this file.
  6. */
  7.  
  8. /*
  9.     The internal structure of a Cbtree object.
  10.  
  11.     When curblock == NONE, the curindex is meaningless.
  12.     When mrkblock == NONE, the mrkindex is meaningless.
  13. */
  14.  
  15. typedef    struct    cbtree {
  16.     struct    cbtree    *next;    /* next in list of valid trees */
  17.     Ctlrec    *ctl;        /* pointer to control record */
  18.     int    (*keycmp) ();    /* pointer to key compare function */
  19.     int    pos_stat;    /* position status (BOI, OK, or EOI) */
  20.     Blk_Nbr    curblock;    /* filecursor - block number, current leaf */
  21.     int    curindex;    /* filecursor - index of current l_pair */
  22.     int    mrk_stat;    /* mark status (BOI, OK, or EOI) */
  23.     Blk_Nbr    mrkblock;    /* filecursor - block number, marked leaf */
  24.     int    mrkindex;    /* filecursor - index of marked l_pair */
  25. } Cbtree;
  26.  
  27. /* end btree.h */
  28.