/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "mempool.h"
};
.alloconly_pool = TRUE,
};
struct datastack_pool {
int refcount;
unsigned int data_stack_frame;
};
{
}
{
return "data stack";
}
{
i_panic("pool_data_stack_ref(): stack frame changed");
}
{
i_panic("pool_data_stack_unref(): stack frame changed");
}
{
i_panic("pool_data_stack_malloc(): stack frame changed");
}
{
i_panic("pool_data_stack_free(): stack frame changed");
}
{
void *new_mem;
/* @UNSAFE */
i_panic("pool_data_stack_realloc(): stack frame changed");
return mem;
}
return mem;
}
{
}
static size_t
{
return t_get_bytes_available();
}