Skip to content

Commit 94ad2a4

Browse files
committed
CLEANUP: Refactor methods of setting ritems
1 parent b1cae74 commit 94ad2a4

File tree

3 files changed

+233
-127
lines changed

3 files changed

+233
-127
lines changed

mc_util.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ typedef struct _mblck_pool {
6868
#define MBLCK_GET_BODYLEN(l) ((l)->body_len)
6969
#define MBLCK_GET_ITEMCNT(l) ((l)->item_cnt)
7070
#define MBLCK_GET_ITEMLEN(l) ((l)->item_len)
71+
#define MBLCK_GET_TOTALSZ(l) ((l)->item_cnt * (l)->item_len)
7172
#define MBLCK_GET_NEXTBLK(b) ((b)->next)
7273
#define MBLCK_GET_BODYPTR(b) ((b)->data)
7374

0 commit comments

Comments
 (0)