diff options
| author | robojumper <robojumper@gmail.com> | 2025-04-27 06:00:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-27 06:00:16 +0200 |
| commit | 5df26c52fcc06e017f2cf525264d4f7563715e05 (patch) | |
| tree | b95a8bc621e63e8e55f987115c48b917ada0d442 /include | |
| parent | 072f32313e71e77163cc82950bbead36a7113a9b (diff) | |
| parent | 6344161203d3d1626357353811310daee334fce4 (diff) | |
Merge pull request #155 from robojumper/splits
Avoid all text auto splits for proper progress tracking
Diffstat (limited to 'include')
| -rw-r--r-- | include/common.h | 4 | ||||
| -rw-r--r-- | include/nw4r/ut/ut_TextWriterBase.h | 4 | ||||
| -rw-r--r-- | include/rvl/OS/OS.h | 3 | ||||
| -rw-r--r-- | include/rvl/OS/OSError.h | 5 | ||||
| -rw-r--r-- | include/rvl/OS/OSHardware.h | 5 | ||||
| -rw-r--r-- | include/rvl/OS/OSUtf.h | 3 | ||||
| -rw-r--r-- | include/sized_string.h | 1 |
7 files changed, 13 insertions, 12 deletions
diff --git a/include/common.h b/include/common.h index 2a6bddb0..97a31a58 100644 --- a/include/common.h +++ b/include/common.h @@ -109,10 +109,6 @@ typedef int BOOL; typedef unsigned char byte_t; -#ifdef __CWCC__ -typedef unsigned long size_t; -#endif - typedef u8 undefined1; typedef u16 undefined2; typedef u32 undefined4; diff --git a/include/nw4r/ut/ut_TextWriterBase.h b/include/nw4r/ut/ut_TextWriterBase.h index 277e3033..f5f9f35e 100644 --- a/include/nw4r/ut/ut_TextWriterBase.h +++ b/include/nw4r/ut/ut_TextWriterBase.h @@ -1,11 +1,11 @@ #ifndef NW4R_UT_TEXT_WRITER_BASE_H #define NW4R_UT_TEXT_WRITER_BASE_H -#include "nw4r/math.h" + #include "nw4r/types_nw4r.h" #include "nw4r/ut/ut_CharWriter.h" #include "nw4r/ut/ut_TagProcessorBase.h" #include "stdio.h" -#include "wchar.h" +#include "wprintf.h" namespace nw4r { namespace ut { diff --git a/include/rvl/OS/OS.h b/include/rvl/OS/OS.h index 32d3a78c..5784393f 100644 --- a/include/rvl/OS/OS.h +++ b/include/rvl/OS/OS.h @@ -65,6 +65,9 @@ typedef struct OSIOSRev { typedef void (*OSExceptionHandler)(u8 type, OSContext *ctx); +#define OSRoundUp32B(x) (((u32)(x) + 32 - 1) & ~(32 - 1)) +#define OSRoundDown32B(x) (((u32)(x)) & ~(32 - 1)) + extern BOOL __OSInIPL; extern BOOL __OSInNandBoot; extern BOOL __OSIsGcam; diff --git a/include/rvl/OS/OSError.h b/include/rvl/OS/OSError.h index d3150d68..918ca5e8 100644 --- a/include/rvl/OS/OSError.h +++ b/include/rvl/OS/OSError.h @@ -4,14 +4,13 @@ #include "__va_arg.h" #include "common.h" +#include "RVL/OS/OSContext.h" + #ifdef __cplusplus extern "C" { #endif -// Forward declarations -typedef struct OSContext OSContext; - #define OSError(...) OSPanic(__FILE__, __LINE__, __VA_ARGS__) #define OSAssert(exp, ...) \ if (!(exp)) \ diff --git a/include/rvl/OS/OSHardware.h b/include/rvl/OS/OSHardware.h index 898eae50..66aa0cbf 100644 --- a/include/rvl/OS/OSHardware.h +++ b/include/rvl/OS/OSHardware.h @@ -4,15 +4,14 @@ // #include "rvl/OS/OSAddress.h" #include "common.h" #include "rvl/OS/OSThread.h" +#include "rvl/OS/OSContext.h" +#include "rvl/OS/OSExec.h" #ifdef __cplusplus extern "C" { #endif -typedef struct OSContext OSContext; -typedef struct OSExecParams OSExecParams; - /** * For more details, see: * https://www.gc-forever.com/yagcd/chap4.html#sec4 diff --git a/include/rvl/OS/OSUtf.h b/include/rvl/OS/OSUtf.h index aa863340..f688a43a 100644 --- a/include/rvl/OS/OSUtf.h +++ b/include/rvl/OS/OSUtf.h @@ -1,6 +1,9 @@ #ifndef RVL_SDK_OS_UTF_H #define RVL_SDK_OS_UTF_H + #include "common.h" +#include "wchar.h" + #ifdef __cplusplus extern "C" { #endif diff --git a/include/sized_string.h b/include/sized_string.h index c0670728..391eefdc 100644 --- a/include/sized_string.h +++ b/include/sized_string.h @@ -4,6 +4,7 @@ #include "__va_arg.h" #include "common.h" #include "string.h" +#include "wstring.h" extern "C" bool strequals(const char *a, const char *b); |
