/* memory handling wrappers. If config doesn't define it's own set of
* functions, use the defaults */
-#define MALLOC(cfg, s) \
- (cfg)->Malloc ? (cfg)->Malloc((s)) : SCMalloc((s))
#define CALLOC(cfg, n, s) \
(cfg)->Calloc ? (cfg)->Calloc((n), (s)) : SCCalloc((n), (s))
#define REALLOC(cfg, ptr, orig_s, s) \
static int StreamingBufferTest02(void)
{
- StreamingBufferConfig cfg = { 8, 24, NULL, NULL, NULL, NULL };
+ StreamingBufferConfig cfg = { 8, 24, NULL, NULL, NULL };
StreamingBuffer *sb = StreamingBufferInit(&cfg);
FAIL_IF(sb == NULL);
static int StreamingBufferTest03(void)
{
- StreamingBufferConfig cfg = { 8, 24, NULL, NULL, NULL, NULL };
+ StreamingBufferConfig cfg = { 8, 24, NULL, NULL, NULL };
StreamingBuffer *sb = StreamingBufferInit(&cfg);
FAIL_IF(sb == NULL);
static int StreamingBufferTest04(void)
{
- StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL, NULL };
+ StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL };
StreamingBuffer *sb = StreamingBufferInit(&cfg);
FAIL_IF(sb == NULL);
/** \test lots of gaps in block list */
static int StreamingBufferTest06(void)
{
- StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL, NULL };
+ StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL };
StreamingBuffer *sb = StreamingBufferInit(&cfg);
FAIL_IF(sb == NULL);
/** \test lots of gaps in block list */
static int StreamingBufferTest07(void)
{
- StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL, NULL };
+ StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL };
StreamingBuffer *sb = StreamingBufferInit(&cfg);
FAIL_IF(sb == NULL);
/** \test lots of gaps in block list */
static int StreamingBufferTest08(void)
{
- StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL, NULL };
+ StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL };
StreamingBuffer *sb = StreamingBufferInit(&cfg);
FAIL_IF(sb == NULL);
/** \test lots of gaps in block list */
static int StreamingBufferTest09(void)
{
- StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL, NULL };
+ StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL };
StreamingBuffer *sb = StreamingBufferInit(&cfg);
FAIL_IF(sb == NULL);
/** \test lots of gaps in block list */
static int StreamingBufferTest10(void)
{
- StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL, NULL };
+ StreamingBufferConfig cfg = { 8, 16, NULL, NULL, NULL };
StreamingBuffer *sb = StreamingBufferInit(&cfg);
FAIL_IF(sb == NULL);