Fix alloc.c as per #386, define INVALID_ constants and rename malloc to alloc as per #325

Some of the INVALID_ are likely erroneously placed, due to lack of documentation
This commit is contained in:
nullableVoidPtr
2018-11-29 19:24:28 +08:00
parent 1b33ad6c26
commit 3909b6408c
148 changed files with 1116 additions and 1108 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
#include "global.h"
#include "malloc.h"
#include "alloc.h"
#include "random.h"
#include "constants/items.h"
#include "text.h"
@@ -1763,7 +1763,7 @@ static void sub_80E8880(struct RankingHall1P *arg0, struct RankingHall1P *arg1)
for (i = 0; i < 3; i++)
{
s32 highestWinStreak = 0;
s32 highestId = -1;
s32 highestId = INVALID_S32;
for (j = 0; j < 6; j++)
{
if (arg1[j].winStreak > highestWinStreak)
@@ -1788,7 +1788,7 @@ static void sub_80E88CC(struct RankingHall2P *arg0, struct RankingHall2P *arg1)
for (i = 0; i < 3; i++)
{
s32 highestWinStreak = 0;
s32 highestId = -1;
s32 highestId = INVALID_S32;
for (j = 0; j < 6; j++)
{
if (arg1[j].winStreak > highestWinStreak)