From 11b7bf2914ff62523110f6fc82c59184a2a8684a Mon Sep 17 00:00:00 2001 From: cadmic Date: Mon, 20 Jan 2025 13:15:13 -0800 Subject: Write about IDO and EGCS in compilers.md (#2432) * Write about IDO and EGCS in compilers.md * Fix typo * Fix another typo * Apply suggestions from code review Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> --------- Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> --- src/code/z_actor.c | 2 +- src/code/z_kanfont.c | 2 +- src/code/z_sram.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/code') diff --git a/src/code/z_actor.c b/src/code/z_actor.c index 0626f05de..37a370557 100644 --- a/src/code/z_actor.c +++ b/src/code/z_actor.c @@ -2570,7 +2570,7 @@ void Actor_Draw(PlayState* play, Actor* actor) { gSPSegment(POLY_OPA_DISP++, 0x06, play->objectCtx.slots[actor->objectSlot].segment); gSPSegment(POLY_XLU_DISP++, 0x06, play->objectCtx.slots[actor->objectSlot].segment); #else - // Workaround for EGCS bug + // Workaround for EGCS internal compiler error (see docs/compilers.md) slots = play->objectCtx.slots; gSPSegment(POLY_OPA_DISP++, 0x06, slots[actor->objectSlot].segment); gSPSegment(POLY_XLU_DISP++, 0x06, slots[actor->objectSlot].segment); diff --git a/src/code/z_kanfont.c b/src/code/z_kanfont.c index 985e2d52f..fa038276f 100644 --- a/src/code/z_kanfont.c +++ b/src/code/z_kanfont.c @@ -119,7 +119,7 @@ void Font_LoadOrderedFont(Font* font) { PRINTF("msg_data=%x, msg_data0=%x jj=%x\n", font->msgOffset, font->msgLength, len); - // Workaround for EGCS bug + // Workaround for EGCS internal compiler error (see docs/compilers.md) msgBufWide = font->msgBufWide; fontBufIndex = 0; for (codePointIndex = 0; msgBufWide[codePointIndex] != MESSAGE_WIDE_END; codePointIndex++) { diff --git a/src/code/z_sram.c b/src/code/z_sram.c index d7d453c9a..0531e2995 100644 --- a/src/code/z_sram.c +++ b/src/code/z_sram.c @@ -853,7 +853,7 @@ void Sram_InitSave(FileSelectState* fileSelect, SramContext* sramCtx) { #if !PLATFORM_IQUE gSaveContext.save.info.playerData.playerName[offset] = fileSelect->fileNames[fileSelect->buttonIndex][offset]; #else - // Workaround for EGCS bug + // Workaround for EGCS internal compiler error (see docs/compilers.md) u8* fileName = fileSelect->fileNames[fileSelect->buttonIndex]; gSaveContext.save.info.playerData.playerName[offset] = fileName[offset]; -- cgit v1.2.3