version 1.1.1.2, 2013/07/22 08:44:29
|
version 1.1.1.3, 2016/11/01 09:56:12
|
Line 29
|
Line 29
|
/* Macros */ |
/* Macros */ |
#define MBDATAU(bp) ((u_char *)(bp) + sizeof(struct mpdmbuf) + (bp)->offset) |
#define MBDATAU(bp) ((u_char *)(bp) + sizeof(struct mpdmbuf) + (bp)->offset) |
#define MBDATA(bp) ((bp) ? MBDATAU(bp) : NULL) |
#define MBDATA(bp) ((bp) ? MBDATAU(bp) : NULL) |
#define MBLEN(bp) ((bp) ? (bp)->cnt : 0) | #define MBLEN(bp) ((size_t)((bp) ? (bp)->cnt : 0)) |
#define MBSPACE(bp) ((bp) ? (bp)->size - (bp)->offset : 0) |
#define MBSPACE(bp) ((bp) ? (bp)->size - (bp)->offset : 0) |
|
|
/* Types of allocated memory */ |
/* Types of allocated memory */ |