78#define LWIP_MEMPOOL(name,num,size,desc) LWIP_MEMPOOL_DECLARE(name,num,size,desc)
82#define LWIP_MEMPOOL(name,num,size,desc) &memp_ ## name,
86#ifdef LWIP_HOOK_FILENAME
87#include LWIP_HOOK_FILENAME
90#if MEMP_MEM_MALLOC && MEMP_OVERFLOW_CHECK >= 2
91#undef MEMP_OVERFLOW_CHECK
93#define MEMP_OVERFLOW_CHECK 1
96#if MEMP_SANITY_CHECK && !MEMP_MEM_MALLOC
119#if MEMP_OVERFLOW_CHECK
142#if MEMP_OVERFLOW_CHECK >= 2
149memp_overflow_check_all(
void)
189 + MEM_SANITY_REGION_AFTER_ALIGNED
194 for (
i = 0;
i <
desc->num; ++
i) {
197#if MEMP_OVERFLOW_CHECK
198 memp_overflow_init_element(
memp,
desc);
203 + MEM_SANITY_REGION_AFTER_ALIGNED
212#if MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY)
232#if LWIP_STATS && MEMP_STATS
237#if MEMP_OVERFLOW_CHECK >= 2
239 memp_overflow_check_all();
244#if !MEMP_OVERFLOW_CHECK
264#if MEMP_OVERFLOW_CHECK == 1
265 memp_overflow_check_element(
memp,
desc);
269#if MEMP_OVERFLOW_CHECK
273#if MEMP_OVERFLOW_CHECK
277 memp_overflow_init_element(
memp,
desc);
284 if (
desc->stats->used >
desc->stats->max) {
285 desc->stats->max =
desc->stats->used;
310#if !MEMP_OVERFLOW_CHECK
321#if !MEMP_OVERFLOW_CHECK
336#if !MEMP_OVERFLOW_CHECK
345#if MEMP_OVERFLOW_CHECK >= 2
346 memp_overflow_check_all();
349#if !MEMP_OVERFLOW_CHECK
372#if MEMP_OVERFLOW_CHECK == 1
373 memp_overflow_check_element(
memp,
desc);
422#ifdef LWIP_HOOK_MEMP_AVAILABLE
423 struct memp *old_first;
432#if MEMP_OVERFLOW_CHECK >= 2
433 memp_overflow_check_all();
436#ifdef LWIP_HOOK_MEMP_AVAILABLE
442#ifdef LWIP_HOOK_MEMP_AVAILABLE
443 if (old_first ==
NULL) {
444 LWIP_HOOK_MEMP_AVAILABLE(
type);
#define LWIP_ARRAYSIZE(x)
#define mem_free(ptr, bsize)
#define SYS_ARCH_UNPROTECT(lev)
#define SYS_ARCH_PROTECT(lev)
#define SYS_ARCH_DECL_PROTECT(lev)
void * mem_malloc(mem_size_t size_in)
#define LWIP_DEBUGF(debug, message)
#define LWIP_ERROR(message, expression, handler)
#define LWIP_ASSERT(message, assertion)
GLuint GLuint GLsizei GLenum type
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
#define LWIP_UNUSED_ARG(x)
#define LWIP_MEM_ALIGN(addr)
#define LWIP_ALIGNMENT_CAST(target_type, val)
#define LWIP_DBG_LEVEL_SERIOUS
#define MEMP_OVERFLOW_CHECK
static void * do_memp_malloc_pool(const struct memp_desc *desc)
void memp_free_pool(const struct memp_desc *desc, void *mem)
void memp_init_pool(const struct memp_desc *desc)
static void do_memp_free_pool(const struct memp_desc *desc, void *mem)
void * memp_malloc_pool(const struct memp_desc *desc)
void * memp_malloc(memp_t type)
const struct memp_desc *const memp_pools[MEMP_MAX]
void memp_free(memp_t type, void *mem)
#define MEMP_ALIGN_SIZE(x)
static const WCHAR desc[]