params become const

This commit is contained in:
ehouse 2006-09-15 07:32:04 +00:00
parent a82e84c177
commit 804b3c5f76
2 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ extern "C" {
typedef struct MemPoolEntry { typedef struct MemPoolEntry {
struct MemPoolEntry* next; struct MemPoolEntry* next;
char* fileName; const char* fileName;
XP_U32 lineNo; XP_U32 lineNo;
XP_U32 size; XP_U32 size;
void* ptr; void* ptr;
@ -120,7 +120,7 @@ mpool_destroy( MemPoolCtx* mpool )
} /* mpool_destroy */ } /* mpool_destroy */
void* void*
mpool_alloc( MemPoolCtx* mpool, XP_U32 size, char* file, XP_U32 lineNo ) mpool_alloc( MemPoolCtx* mpool, XP_U32 size, const char* file, XP_U32 lineNo )
{ {
MemPoolEntry* entry; MemPoolEntry* entry;

View file

@ -33,8 +33,8 @@ typedef struct MemPoolCtx MemPoolCtx;
MemPoolCtx* mpool_make(); MemPoolCtx* mpool_make();
void mpool_destroy( MemPoolCtx* mpool ); void mpool_destroy( MemPoolCtx* mpool );
void* mpool_alloc( MemPoolCtx* mpool, XP_U32 size, char* file, void* mpool_alloc( MemPoolCtx* mpool, XP_U32 size,
XP_U32 lineNo ); const char* file, XP_U32 lineNo );
void* mpool_realloc( MemPoolCtx* mpool, void* ptr, XP_U32 newsize ); void* mpool_realloc( MemPoolCtx* mpool, void* ptr, XP_U32 newsize );
void mpool_free( MemPoolCtx* mpool, void* ptr ); void mpool_free( MemPoolCtx* mpool, void* ptr );
void mpool_stats( MemPoolCtx* mpool, XWStreamCtxt* stream ); void mpool_stats( MemPoolCtx* mpool, XWStreamCtxt* stream );