summaryrefslogtreecommitdiff
path: root/src/i_system.c
diff options
context:
space:
mode:
authorSimon Howard2013-08-11 17:32:29 +0000
committerSimon Howard2013-08-11 17:32:29 +0000
commit63acb55b18f024db74fd9a7eedbf3137922630c4 (patch)
tree625c361f74f661ab3448f165d8bcc0b154379292 /src/i_system.c
parentb1d51276a264849ded93ce943eb0283c1f4f1aba (diff)
downloadchocolate-doom-63acb55b18f024db74fd9a7eedbf3137922630c4.tar.gz
chocolate-doom-63acb55b18f024db74fd9a7eedbf3137922630c4.tar.bz2
chocolate-doom-63acb55b18f024db74fd9a7eedbf3137922630c4.zip
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
Diffstat (limited to 'src/i_system.c')
-rw-r--r--src/i_system.c47
1 files changed, 0 insertions, 47 deletions
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;