move rand.h funcs to stdlib.h

This commit is contained in:
red031000 2025-02-23 22:13:21 +00:00
parent d85eff3b75
commit 44153caeca
No known key found for this signature in database
GPG Key ID: D27E50C050AE0CE1
5 changed files with 4 additions and 11 deletions

View File

@ -3,7 +3,6 @@
//include all msl files here
#include "rand.h"
#include "stdlib.h"
#include "string.h"

View File

@ -1,7 +0,0 @@
#ifndef POKEDIAMOND_MSL_RAND_H
#define POKEDIAMOND_MSL_RAND_H
int rand(void);
void srand(unsigned int seed);
#endif // POKEDIAMOND_MSL_RAND_H

View File

@ -4,5 +4,7 @@
// this file MUST be called stdlib.h, as the filename affects matching for some reason
int abs(int val);
void srand(unsigned int seed);
int rand(void);
#endif // POKEDIAMOND_MSL_C_STDLIB_H

View File

@ -1,5 +1,5 @@
#include "rand.h"
#include "code32.h"
#include "stdlib.h"
static unsigned long int random_next = 1;

View File

@ -5,9 +5,9 @@
#include "party.h"
#include "pokedex.h"
#include "pokemon_storage_system.h"
#include "sav_chatot.h"
#include "save_vars_flags.h"
#include "scrcmd.h"
#include "sav_chatot.h"
extern void *FieldSysGetAttrAddr(FieldSystem *fieldSystem, u8 idx);
extern SaveFashionData *Save_FashionData_Get(SaveData *save);
@ -55,7 +55,6 @@ static BOOL sub_0203FEF4(ScriptContext *ctx);
static BOOL sub_020401F0(ScriptContext *ctx);
static BOOL sub_02040618(ScriptContext *ctx);
BOOL ScrCmd_Unk00F8(ScriptContext *ctx) {
void **miscDataPtr = FieldSysGetAttrAddr(ctx->fieldSystem, SCRIPTENV_MISC_DATA_PTR);