File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 3636namespace Jrd {
3737
3838// Flags (3-bits) used for index node
39- const int BTN_NORMAL_FLAG = 0 ;
40- const int BTN_END_LEVEL_FLAG = 1 ;
41- const int BTN_END_BUCKET_FLAG = 2 ;
42- const int BTN_ZERO_PREFIX_ZERO_LENGTH_FLAG = 3 ;
43- const int BTN_ZERO_LENGTH_FLAG = 4 ;
44- const int BTN_ONE_LENGTH_FLAG = 5 ;
45- // const int BTN_ZERO_PREFIX_ONE_LENGTH_FLAG = 6;
46- // const int BTN_GET_MORE_FLAGS = 7;
39+ inline constexpr int BTN_NORMAL_FLAG = 0 ;
40+ inline constexpr int BTN_END_LEVEL_FLAG = 1 ;
41+ inline constexpr int BTN_END_BUCKET_FLAG = 2 ;
42+ inline constexpr int BTN_ZERO_PREFIX_ZERO_LENGTH_FLAG = 3 ;
43+ inline constexpr int BTN_ZERO_LENGTH_FLAG = 4 ;
44+ inline constexpr int BTN_ONE_LENGTH_FLAG = 5 ;
45+ // inline constexpr int BTN_ZERO_PREFIX_ONE_LENGTH_FLAG = 6;
46+ // inline constexpr int BTN_GET_MORE_FLAGS = 7;
4747
4848// Firebird B-tree nodes
49- const USHORT BTN_LEAF_SIZE = 6 ;
50- const USHORT BTN_PAGE_SIZE = 10 ;
49+ inline constexpr USHORT BTN_LEAF_SIZE = 6 ;
50+ inline constexpr USHORT BTN_PAGE_SIZE = 10 ;
5151
5252struct IndexNode
5353{
You can’t perform that action at this time.
0 commit comments