00001 #ifndef ircdef_h
00002 #define ircdef_h
00003
00004 #define IRC_M_PTRSZ 0x3
00005 #define IRC_M_RECORDCB 0xFC
00006 #define IRC_M_DELETED 0x4
00007 #define IRC_M_NOPTRSZ 0x10
00008 #define IRC_M_FIRST_KEY 0x80
00009 #define IRC_M_RRV 0x8
00010 #define IRC_M_NODUPCNT 0x10
00011 #define IRC_M_RU_DELETE 0x20
00012 #define IRC_M_RU_UPDATE 0x40
00013 #define IRC_C_IDXPTRBAS 2
00014 #define IRC_C_IDXOVHDSZ 1
00015
00016 #define IRC_S_IRCDEF 1
00017
00018 #define IRC_S_IRCDEF1 3
00019
00020 #define IRC_C_DATSZFLD 2
00021 #define IRC_C_DATPTRBAS 3
00022 #define IRC_C_DCNTSZFLD 4
00023 #define IRC_C_DATOVHDSZ 2
00024 #define IRC_C_FIXOVHDSZ 7
00025 #define IRC_C_VAROVHDSZ 9
00026 #define IRC_C_RRVOVHDSZ 7
00027
00028 #define IRC_C_DATPTRBS3 4
00029 #define IRC_C_DATOVHSZ3 3
00030 #define IRC_C_FIXOVHSZ3 9
00031 #define IRC_C_VAROVHSZ3 11
00032 #define IRC_C_RRVOVHSZ3 9
00033 #define IRC_C_SDROVHSZ3 2
00034 #define IRC_C_KEYCMPOVH 2
00035 #define IRC_C_DATCMPOVH 3
00036 #define IRC_S_IRCDEF2 5
00037
00038
00039
00040 struct _irc {
00041 union {
00042 unsigned char irc_b_control;
00043 #if 0
00044 struct {
00045 unsigned irc_v_ptrsz : 2;
00046 unsigned irc_v_recordcb : 6;
00047 };
00048 struct {
00049 unsigned irc_$_fill_1 : 2;
00050 unsigned irc_v_deleted : 1;
00051 unsigned irc_$_fill_2 : 1;
00052 unsigned irc_v_noptrsz : 1;
00053 unsigned irc_$_fill_3 : 2;
00054 unsigned irc_v_first_key : 1;
00055 };
00056 struct {
00057 unsigned irc_$_fill_3 : 3;
00058 unsigned irc_v_rrv : 1;
00059 unsigned irc_v_fill_5_ : 4;
00060 };
00061 struct {
00062 unsigned irc_$_fill_5 : 4;
00063 unsigned irc_v_nodupcnt : 1;
00064 unsigned irc_v_fill_6_ : 3;
00065 };
00066 struct {
00067 unsigned irc_$_fill_6 : 5;
00068 unsigned irc_v_ru_delete : 1;
00069 unsigned irc_v_ru_update : 1;
00070 unsigned irc_v_fill_7_ : 1;
00071 };
00072 struct {
00073 char irc_$_fill_7;
00074 };
00075 #endif
00076 };
00077 };
00078
00079 struct _irc1 {
00080 struct _irc irc_r_irc;
00081 unsigned char irc_b_id;
00082 unsigned char irc_b_rrv_id;
00083 };
00084
00085 struct _irc2 {
00086 struct _irc irc_r_irc;
00087 unsigned short int irc_w_id;
00088 unsigned short int irc_w_rrv_id;
00089 };
00090
00091
00092
00093
00094
00095
00096 struct _irc_idx {
00097 unsigned short int irc_w_id;
00098 unsigned short int irc_w_rrv_id;
00099 unsigned long irc_l_vbn;
00100 unsigned short int irc_w_addnxtid;
00101
00102 unsigned short int irc_w_keylen;
00103 };
00104
00105 #endif
00106
00107