summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-10-08 16:02:11 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-10-08 16:02:11 -0400
commit1d50bcb0b95e52fb43c22a3348ac033b3534f860 (patch)
tree2f1805ef467b7b726637ccbfa6e5933c45da504a /src
parenteda4a9f9406aa2ef3fe91006e134f44b07035081 (diff)
Cleanup and create menews_jisan header
Diffstat (limited to 'src')
-rw-r--r--src/menews_jisan.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/menews_jisan.c b/src/menews_jisan.c
index dd1376c26..7dfcee939 100644
--- a/src/menews_jisan.c
+++ b/src/menews_jisan.c
@@ -2,14 +2,13 @@
#include "mevent.h"
#include "random.h"
#include "event_data.h"
+#include "menews_jisan.h"
-extern EWRAM_DATA u16 gUnknown_20370D0;
-
-u32 sub_8146D74(struct MysteryEventStruct *);
-void sub_8146DD8(struct MysteryEventStruct *);
-u32 sub_8146E0C(struct MysteryEventStruct *);
-void sub_8146DA0(struct MysteryEventStruct *);
-void sub_8146D94(struct MysteryEventStruct *);
+static u32 sub_8146D74(struct MysteryEventStruct *);
+static void sub_8146DD8(struct MysteryEventStruct *);
+static u32 sub_8146E0C(struct MysteryEventStruct *);
+static void sub_8146DA0(struct MysteryEventStruct *);
+static void sub_8146D94(struct MysteryEventStruct *);
#ifdef NONMATCHING
void sub_8146C30(u32 a0)
@@ -144,7 +143,7 @@ u16 sub_8146CE8(void)
return r5;
}
-u32 sub_8146D74(struct MysteryEventStruct *a0)
+static u32 sub_8146D74(struct MysteryEventStruct *a0)
{
u32 r4;
@@ -155,26 +154,26 @@ u32 sub_8146D74(struct MysteryEventStruct *a0)
return r4;
}
-void sub_8146D94(struct MysteryEventStruct *a0)
+static void sub_8146D94(struct MysteryEventStruct *a0)
{
a0->unk_0_2 = 0;
}
-void sub_8146DA0(struct MysteryEventStruct *a0)
+static void sub_8146DA0(struct MysteryEventStruct *a0)
{
a0->unk_0_2++;
if ((u8)a0->unk_0_2 > 4)
a0->unk_0_2 = 4;
}
-void sub_8146DD8(struct MysteryEventStruct *a0)
+static void sub_8146DD8(struct MysteryEventStruct *a0)
{
a0->unk_0_5++;
if ((u8)a0->unk_0_5 > 5)
a0->unk_0_5 = 5;
}
-u32 sub_8146E0C(struct MysteryEventStruct *a0)
+static u32 sub_8146E0C(struct MysteryEventStruct *a0)
{
struct MysteryEventStruct r0;
if ((u8)a0->unk_0_5 == 5)