From 63acb55b18f024db74fd9a7eedbf3137922630c4 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 11 Aug 2013 17:32:29 +0000 Subject: Remove Windows CE support. What support exists is for obsolete devices I no longer possess; I've never been contacted about the port and it's been several years since I even bothered to build a new version. All the extra overrides are clutter that can just be removed. Subversion-branch: /branches/v2-branch Subversion-revision: 2615 --- src/i_system.c | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) (limited to 'src/i_system.c') diff --git a/src/i_system.c b/src/i_system.c index 328fd9f5..5e3ae89e 100644 --- a/src/i_system.c +++ b/src/i_system.c @@ -94,51 +94,6 @@ void I_Tactile(int on, int off, int total) { } -#ifdef _WIN32_WCE - -// Windows CE-specific auto-allocation function that allocates the zone -// size based on the amount of memory reported free by the OS. - -static byte *AutoAllocMemory(int *size, int default_ram, int min_ram) -{ - MEMORYSTATUS memory_status; - byte *zonemem; - size_t available; - - // Get available physical RAM. We leave one megabyte extra free - // for the OS to keep running (my PDA becomes unstable if too - // much RAM is allocated) - - GlobalMemoryStatus(&memory_status); - available = memory_status.dwAvailPhys - 2 * 1024 * 1024; - - // Limit to default_ram if we have more than that available: - - if (available > default_ram * 1024 * 1024) - { - available = default_ram * 1024 * 1024; - } - - if (available < min_ram * 1024 * 1024) - { - I_Error("Unable to allocate %i MiB of RAM for zone", min_ram); - } - - // Allocate zone: - - *size = available; - zonemem = malloc(*size); - - if (zonemem == NULL) - { - I_Error("Failed when allocating %i bytes", *size); - } - - return zonemem; -} - -#else - // Zone memory auto-allocation function that allocates the zone size // by trying progressively smaller zone sizes until one is found that // works. @@ -181,8 +136,6 @@ static byte *AutoAllocMemory(int *size, int default_ram, int min_ram) return zonemem; } -#endif - byte *I_ZoneBase (int *size) { byte *zonemem; -- cgit v1.2.3