Remove obsolete errno interface

This commit is contained in:
Jeffrey Pfau 2013-10-20 16:48:29 -07:00
parent 4429435071
commit 228b6aaa01
3 changed files with 2 additions and 8 deletions

View File

@ -7,8 +7,6 @@
#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 @@ void GBAMemoryInit(struct GBAMemory* memory) {
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;

View File

@ -35,8 +35,6 @@ static void GBAHitStub(struct ARMBoard* board, uint32_t opcode);
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;

View File

@ -88,8 +88,6 @@ struct GBA {
const char* activeFile;
const char* savefile;
enum GBAError errno;
const char* errstr;
int logLevel;
};