home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c004 / 2.ddi / UNIX / CTOPTN.SRV < prev    next >
Encoding:
Text File  |  1989-04-18  |  4.5 KB  |  166 lines

  1. /*
  2.  *          SEE CTOPTN.D IN THE MAIN c-tree DIRECTORY FOR AN
  3.  *        EXPLANATION OF THE CONFIGURATION PARAMETERS
  4.  */
  5.  
  6. /* ***      Place Your Configuration Option Selections Here        *** */
  7.  
  8. #define FPUTONLY
  9. #define NO_FLUSH
  10. #define HIGH_LOW
  11. #define VARLDATA
  12. #define PERC_HD
  13. #define VARLKEYS
  14. #define FLOATKEY
  15. #define UNIFRMAT
  16. #define PARMFILE
  17. #define RTREE
  18. #define CTSERVER
  19. #define CTS_INDP
  20. #define CTS_ISAM
  21. #define NATURAL_SERIAL
  22.  
  23. /* ***                Capacity Constants                *** */
  24.  
  25. #define MAXLEN        64    /* maximum key length            */
  26. #define    MAXVFIL        255    /* maximum virtual files open        */
  27. #define MAX_NAME    64    /* maximum file name length        */
  28.  
  29. /* ***            Variable Length Key & Field Constants        *** */
  30.  
  31. #define PADDING        ' '    /* trailing ct_key padding            */
  32. #define FIELD_DELIM    '\0'    /* var length field delimiter        */
  33.  
  34. /*
  35.  * The following capacity constants are used only by the ISAM routines and
  36.  * the REBUILD routines.
  37.  */
  38.  
  39. #define MAXFIL        40    /* maximum number of files        */
  40. #define MAX_DAT_KEY    10    /* maximum number of indices per data   */
  41.                 /* file                    */
  42. #define MAX_KEY_SEG    4    /* maximum number of segments per ct_key    */
  43. #define MAX_LOCKS    32    /* maximum number of ct_locks        */
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. /* ******************************************************************** */
  51. /* ************************     S T O P    **************************** */
  52. /* ***     D O   N O T   C H A N G E   T H E    F O L L O W I N G   *** */
  53. /* ***   W I T H O U T   C H E C K I N G   W I T H   F A I R C O M  *** */
  54. /* ******************************************************************** */
  55.  
  56. /* ***********     FPUTFGET CANNOT BE USED WITH THE SERVER    ********* */
  57. #ifdef CTSERVER
  58. #ifdef FPUTFGET
  59. #undef FPUTFGET
  60. #define FPUTONLY
  61. #endif
  62. #endif
  63.  
  64. /* ***********   MUSTFRCE indicates multi-user requirements  ********* */
  65. #ifdef MUSTFRCE
  66. #undef MUSTFRCE
  67. #endif
  68. #ifdef FPUTFGET
  69. #define MUSTFRCE
  70. #endif
  71. #ifdef CTSERVER
  72. #define MUSTFRCE
  73. #endif
  74.  
  75. /* ***********  DOSFLUSH APPLIES ONLY TO FPUTONLY & FPUTFGET  ********* */
  76. #ifdef NOTFORCE
  77. #ifdef DOSFLUSH
  78. #undef  DOSFLUSH
  79. #define NO_FLUSH
  80. #endif
  81. #endif
  82. /* ************* ************* ************* ************ ************* */
  83.  
  84. /* *************     UNIFRMAT APPLIES ONLY TO HIGH_LOW    ************* */
  85. #ifdef LOW_HIGH
  86. #ifdef UNIFRMAT
  87. #undef  UNIFRMAT
  88. #define NO_UNIFM
  89. #endif
  90. #endif
  91. /* ************* ************* ************* ************ ************* */
  92.  
  93.  
  94. #define MAXLEV        10    /* maximum height of B-Tree + 1        */
  95. #define    VARI_LEN    (sizeof(VRLEN) + sizeof(LONG))
  96. #define STATUS    (2 * sizeof(COUNT) + 2 * sizeof(LONG   ) + 2 * sizeof(TEXT))
  97. /* node info:     nkv & nkb         sucesr & predsr       leaf & bmem    */
  98.  
  99. #define HDRSIZ   64
  100. /* permanent header information */
  101. #define DHDRSIZ  HDRSIZ
  102.  
  103.  
  104. #ifdef  FPUTFGET
  105. #define PRDRPEAT    10    /* # of times to retry predsr node    */
  106. #else
  107. #define PRDRPEAT    0
  108. #endif
  109.  
  110. #define    MAXMEMB        31    /* maximum additional index members    */
  111.  
  112.  
  113.  
  114. /* ******************************************************************** */
  115. /* ***            SYMBOLIC CONSTANTS               ***  */
  116. /* ******************************************************************** */
  117.  
  118. #define    DRNZERO         (POINTER) 0
  119. #define    NODEZERO    (LONG   ) 0
  120.  
  121. #define CTREAD     0
  122. #define CTWRITE     1
  123. #define CTNONE     3
  124. #define CTXTND     4
  125.  
  126. #define LEAF     '\1'
  127. #define NOLEAF   '\0'
  128.  
  129. #define ALPHAKEY    '\0'
  130. #define INTKEY        '\1'
  131. #define SFLOATKEY    '\2'
  132. #define DFLOATKEY    '\3'
  133. #define COL_PREFIX    '\4'    /* leading character compression    */
  134. #define COL_SUFFIX    '\10'    /*  8 decimal: padding compression    */
  135. #define COL_BOTH    '\14'    /* 12 decimal: both of the above    */
  136. #define ALT_SEQ        '\20'    /* 16 decimal: alternative col sequence    */
  137. #define MSK_ALT        ~ALT_SEQ
  138.  
  139. #define DUPKEY   '\1'
  140. #define NODUPKEY '\0'
  141.  
  142. #define REGULAR  '\1'
  143. #define DUPLEAF  '\0'
  144. #define DUPNONL     '\3'
  145.  
  146. #define DAT_CLOSE '\0'
  147. #define IDX_CLOSE '\1'
  148. #define VAT_CLOSE '\2'
  149.  
  150. #define SECSIZ   128        /* logical sector size. DO NOT CHANGE.    */
  151. #define CTBUFSIZ (4 * SECSIZ)    /* ct_buf[] size */
  152. #define UPDATED  C255        /* C255 defined in ctcmpl.h */
  153. #define DELFLG     C255
  154. #define COMPACT  '\143'        /* file compaction flag: must rebuild indices */
  155. #define CMPMSK     0x00ff
  156.  
  157. #define MAXAGE    0xffff    /* max age of lru counter before roll-over */
  158. #define MAXSRLPOS 0xffff    /* no serial segment flag           */
  159.  
  160. #define    LH_VER     0x0001            /* LOW_HIGH option         */
  161. #define    HL_VER     0x0002            /* HIGH_LOW   "            */
  162. #define CT_V4     0x0050            /* c-tree version 4.1(A,B,C,D)    */
  163. #define CT_V4E     0x0060            /* c-tree version 4.1E/E2/F 4.3A*/
  164.  
  165. /*    end of ctoptn.h        */
  166.