mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
params become const
This commit is contained in:
parent
a82e84c177
commit
804b3c5f76
2 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@ extern "C" {
|
|||
|
||||
typedef struct MemPoolEntry {
|
||||
struct MemPoolEntry* next;
|
||||
char* fileName;
|
||||
const char* fileName;
|
||||
XP_U32 lineNo;
|
||||
XP_U32 size;
|
||||
void* ptr;
|
||||
|
@ -120,7 +120,7 @@ mpool_destroy( MemPoolCtx* mpool )
|
|||
} /* mpool_destroy */
|
||||
|
||||
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;
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@ typedef struct MemPoolCtx MemPoolCtx;
|
|||
MemPoolCtx* mpool_make();
|
||||
void mpool_destroy( MemPoolCtx* mpool );
|
||||
|
||||
void* mpool_alloc( MemPoolCtx* mpool, XP_U32 size, char* file,
|
||||
XP_U32 lineNo );
|
||||
void* mpool_alloc( MemPoolCtx* mpool, XP_U32 size,
|
||||
const char* file, XP_U32 lineNo );
|
||||
void* mpool_realloc( MemPoolCtx* mpool, void* ptr, XP_U32 newsize );
|
||||
void mpool_free( MemPoolCtx* mpool, void* ptr );
|
||||
void mpool_stats( MemPoolCtx* mpool, XWStreamCtxt* stream );
|
||||
|
|
Loading…
Reference in a new issue