all repos — mgba @ 228b6aaa016e7e249ac54504f9c42b2732261cd3

mGBA Game Boy Advance Emulator

Remove obsolete errno interface
Jeffrey Pfau jeffrey@endrift.com
Sun, 20 Oct 2013 16:48:29 -0700
commit

228b6aaa016e7e249ac54504f9c42b2732261cd3

parent

4429435071ef1924e1e4aa4b092bc6607811fc7b

3 files changed, 2 insertions(+), 8 deletions(-)

jump to
M src/gba/gba-memory.csrc/gba/gba-memory.c

@@ -7,8 +7,6 @@ #include <limits.h>

#include <string.h> #include <sys/mman.h> -static const char* GBA_CANNOT_MMAP = "Could not map memory"; - static void GBASetActiveRegion(struct ARMMemory* memory, uint32_t region); static int GBAWaitMultiple(struct ARMMemory* memory, uint32_t startAddress, int count);

@@ -40,8 +38,8 @@ memset(memory->dma, 0, sizeof(memory->dma));

if (!memory->wram || !memory->iwram) { GBAMemoryDeinit(memory); - memory->p->errno = GBA_OUT_OF_MEMORY; - memory->p->errstr = GBA_CANNOT_MMAP; + GBALog(memory->p, GBA_LOG_ERROR, "Could not map memory"); + return; } int i;
M src/gba/gba.csrc/gba/gba.c

@@ -35,8 +35,6 @@

static void _checkOverrides(struct GBA* gba, uint32_t code); void GBAInit(struct GBA* gba) { - gba->errno = GBA_NO_ERROR; - gba->errstr = 0; gba->debugger = 0; gba->savefile = 0;
M src/gba/gba.hsrc/gba/gba.h

@@ -88,8 +88,6 @@ int* keySource;

const char* activeFile; const char* savefile; - enum GBAError errno; - const char* errstr; int logLevel; };