Fix UINT32 issue for rs97

UINT32 is not recognized for rs97 so uint32 is used instead
This commit is contained in:
turtleletortue 2019-09-01 11:42:14 -04:00 committed by GitHub
parent 246157c3a2
commit 3a6bcdfcb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -17,15 +17,15 @@ typedef struct sMemBlockInfo
{
void *ptr;
char *info;
UINT32 size;
uint32 size;
struct sMemBlockInfo *next;
struct sMemBlockInfo *prev;
} sMemBlockInfo;
sMemBlockInfo memoryInfo;
UINT32 memoryMaxAllocated;
UINT32 currentAllocatedMemory;
UINT32 maximumAllocatedMemory;
uint32 memoryMaxAllocated;
uint32 currentAllocatedMemory;
uint32 maximumAllocatedMemory;
//////////////////////////////////////////////////////////////////////////////
//
@ -37,7 +37,7 @@ UINT32 maximumAllocatedMemory;
//
//
//////////////////////////////////////////////////////////////////////////////
void memory_addMemInfo(void *ptr, UINT32 size, char *info)
void memory_addMemInfo(void *ptr, uint32 size, char *info)
{
sMemBlockInfo *alias;
@ -83,7 +83,7 @@ void memory_init(void)
//
//
//////////////////////////////////////////////////////////////////////////////
void *memory_malloc(UINT32 size, char *info)
void *memory_malloc(uint32 size, char *info)
{
void *ptr;
@ -108,7 +108,7 @@ void *memory_malloc(UINT32 size, char *info)
//
//
//////////////////////////////////////////////////////////////////////////////
void memory_malloc_secure(void **new_ptr, UINT32 size, char *info)
void memory_malloc_secure(void **new_ptr, uint32 size, char *info)
{
void *ptr;
@ -137,7 +137,7 @@ void memory_malloc_secure(void **new_ptr, UINT32 size, char *info)
void memory_memoryUsage(FILE *fp)
{
sMemBlockInfo *alias;
UINT32 total=0;
uint32 total=0;
//fprintf(fp,"Memory usage:\n");
alias=&memoryInfo;

View File

@ -20,8 +20,8 @@
void memory_init(void);
void memory_done(void);
void memory_malloc_secure(void **new_ptr, UINT32 size, char *info);
void *memory_malloc(UINT32 size, char *info);
void memory_malloc_secure(void **new_ptr, uint32 size, char *info);
void *memory_malloc(uint32 size, char *info);
void memory_free(void *ptr);
void memory_memoryUsage(FILE *fp);