Remove obsolete errno interface
Jeffrey Pfau jeffrey@endrift.com
Sun, 20 Oct 2013 16:48:29 -0700
3 files changed,
2 insertions(+),
8 deletions(-)
M
src/gba/gba-memory.c
→
src/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.c
→
src/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.h
→
src/gba/gba.h
@@ -88,8 +88,6 @@ int* keySource;
const char* activeFile; const char* savefile; - enum GBAError errno; - const char* errstr; int logLevel; };