Skip to content

Commit 28eb37d

Browse files
committed
constexpr btn
1 parent 4bad61d commit 28eb37d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/jrd/btn.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@
3636
namespace 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

5252
struct IndexNode
5353
{

0 commit comments

Comments
 (0)