--- libelwix/src/mem.c 2013/01/17 10:05:35 1.1 +++ libelwix/src/mem.c 2013/05/30 09:07:33 1.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: mem.c,v 1.1 2013/01/17 10:05:35 misho Exp $ +* $Id: mem.c,v 1.2 2013/05/30 09:07:33 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -544,7 +544,7 @@ mpool_strdup(mpool_t * __restrict mp, const char *str, * @memname = Memory name * return: NULL error or not found and !=NULL allocated memory */ -inline struct tagAlloc * +struct tagAlloc * mpool_getmembynam(mpool_t * __restrict mp, u_int size, const char *memname) { int idx; @@ -567,7 +567,7 @@ mpool_getmembynam(mpool_t * __restrict mp, u_int size, * @addr = allocated memory from mpool_malloc() * return: usable size of allocated memory block */ -inline u_int +u_int mpool_getsizebyaddr(void * __restrict data) { if (mpool_chkaddr(data)) @@ -582,7 +582,7 @@ mpool_getsizebyaddr(void * __restrict data) * @data = allocated memory from mpool_malloc() * return: -1 bad address, 1 corrupted address or 0 ok */ -inline int +int mpool_chkaddr(void * __restrict data) { /* check address range */ @@ -602,7 +602,7 @@ mpool_chkaddr(void * __restrict data) * @maxmem = New max quota size * return: old maximum memory quota size */ -inline u_long +u_long mpool_setquota(mpool_t * __restrict mp, u_long maxmem) { u_long ret; @@ -630,7 +630,7 @@ mpool_setquota(mpool_t * __restrict mp, u_long maxmem) * @maxmem = Return max quota size * return: none */ -inline void +void mpool_getquota(mpool_t * __restrict mp, u_long *currmem, u_long *maxmem) { if (!mp)