rename all sc_array stuff to vector stuff

This commit is contained in:
2025-05-03 22:47:59 +03:00
parent d1bff36830
commit 487da24e65
11 changed files with 151 additions and 131 deletions

View File

@@ -1,13 +1,12 @@
#pragma once
#include "vector.h"
#include "memmap.h"
#include "symbols.h"
#include "types.h"
#include "vector.h"
struct HiloadContext;
typedef enum {
HI_MODULE_STATE_DIRTY = (1 << 0),
HI_MODULE_STATE_PATCHABLE = (1 << 6), // non system module we will modify
@@ -22,14 +21,12 @@ typedef struct {
ModuleInfo info;
} ModuleData;
sc_array_def(ModuleData, module);
typedef struct sc_array_module VectorModuleData;
vector_def(ModuleData, ModuleData);
static inline ModuleInfo hi_modinfo_add(ModuleInfo flags, ModuleFlags flag) {
return flags | flag;
}
static inline ModuleInfo hi_modinfo_clear(ModuleInfo flags,
ModuleFlags flag) {
static inline ModuleInfo hi_modinfo_clear(ModuleInfo flags, ModuleFlags flag) {
return flags & ~flag;
}
static inline bool hi_modinfo_has(ModuleInfo flags, ModuleFlags flag) {