diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-05-09 12:19:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 12:19:21 -0400 |
commit | 4a32bb288b5af3333a47e33d1ba9a83485ff1052 (patch) | |
tree | bb77ed81792d2e4dfe4370eb45ee0a53a3f02626 /arm9/src/string_util.c | |
parent | f76cec09f8a2995244256d4b097d9eed2bebd34a (diff) | |
parent | e660f7a7f749242dc73851d47e806b96783bc47d (diff) |
Merge pull request #65 from PikalaxALT/libfs
Libfs
Diffstat (limited to 'arm9/src/string_util.c')
-rw-r--r-- | arm9/src/string_util.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arm9/src/string_util.c b/arm9/src/string_util.c index 6c949e88..e6ea85de 100644 --- a/arm9/src/string_util.c +++ b/arm9/src/string_util.c @@ -1,6 +1,9 @@ #include "global.h"
-u16 gDigitTable[] = {
+#define EOS 0xFFFF
+#define NON_DIGIT 0xE2
+
+const u16 gDigitTable[] = {
0xA2,
0xA3,
0xA4,
@@ -19,7 +22,7 @@ u16 gDigitTable[] = { 0xB1
};
-s32 gPowersOfTen[] = {
+const s32 gPowersOfTen[] = {
1,
10,
100,
@@ -32,8 +35,6 @@ s32 gPowersOfTen[] = { 1000000000,
};
-static const u16 EOS = 0xFFFF;
-
THUMB_FUNC void StringCopy(u16 *dest, const u16 *src)
{
u16 c = *src;
@@ -129,8 +130,6 @@ enum PrintingMode { PAD_ZEROES
};
-const u16 NON_DIGIT = 0xE2;
-
THUMB_FUNC u16 *ConvertUIntToDecimalString(u16 *dest, u32 value, enum PrintingMode mode, u32 n)
{
for (u32 x = gPowersOfTen[n - 1]; x != 0; x = x / 10) {
|