clean up extra decorators

This commit is contained in:
Sydney Biscuit committed 2019-08-18 16:44:11 -07:00
1 parent 531e638179
commit 3183e73860
95 files changed
+4629 -4631

No files matched your search

+8 -8
View File
@@ -5,7 +5,7 @@
#include "pinball.h"
//----- (010054AC) --------------------------------------------------------
int __stdcall memory_init(int a1)
int memory_init(int a1)
{
int result; // eax
@@ -16,9 +16,9 @@ int __stdcall memory_init(int a1)
// 1024F08: using guessed type int (*memory_critical_callback)(void);
//----- (010054C2) --------------------------------------------------------
int __stdcall memoryallocate(unsigned int a1)
int memoryallocate(unsigned int a1)
{
_DWORD *v1; // eax
DWORD *v1; // eax
v1 = _malloc(a1 + 4);
if ( a1 >= 0xFFDC )
@@ -51,11 +51,11 @@ int __stdcall memoryallocate(unsigned int a1)
// 1024F08: using guessed type int (*memory_critical_callback)(void);
//----- (01005541) --------------------------------------------------------
void __stdcall memoryfree(int a1)
void memoryfree(int a1)
{
char v1; // cl
memory_use_total += -4 - (*(_DWORD *)(a1 - 4) >> 8);
memory_use_total += -4 - (*(DWORD *)(a1 - 4) >> 8);
v1 = *(_BYTE *)(a1 - 4);
if ( v1 == 90 || v1 == -91 )
_free((void *)(a1 - 4));
@@ -63,7 +63,7 @@ void __stdcall memoryfree(int a1)
// 1024F00: using guessed type int memory_use_total;
//----- (01005579) --------------------------------------------------------
int __stdcall memoryrealloc(int a1, unsigned int a2)
int memoryrealloc(int a1, unsigned int a2)
{
int result; // eax
char *v3; // eax
@@ -72,11 +72,11 @@ int __stdcall memoryrealloc(int a1, unsigned int a2)
if ( !a1 )
return memoryallocate(a2);
v3 = (char *)(a1 - 4);
memory_use_total -= *(_DWORD *)(a1 - 4) >> 8;
memory_use_total -= *(DWORD *)(a1 - 4) >> 8;
if ( *(_BYTE *)(a1 - 4) != 90 && *(_BYTE *)(a1 - 4) != -91 || (v3 = (char *)_realloc(v3, a2 + 4)) != 0 )
{
v4 = *v3;
*(_DWORD *)v3 = a2 << 8;
*(DWORD *)v3 = a2 << 8;
memory_use_total += a2;
*v3 = v4;
result = (int)(v3 + 4);