From 6d3a534d99c0974a14d674862566ba1fbfda5fb8 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 7 Jun 2017 17:53:13 -0500 Subject: [PATCH] farcoreleft() is now flexible <3 going to code later like a few days from now later --- src/lib/16_hc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/16_hc.c b/src/lib/16_hc.c index 3bd47bb8..1d6bd4cb 100755 --- a/src/lib/16_hc.c +++ b/src/lib/16_hc.c @@ -51,6 +51,7 @@ long HC_Newfarcoreleft() } #endif +//from: https://stackoverflow.com/questions/14386856/c-check-available-ram void #ifdef __BORLANDC__ * @@ -117,6 +118,7 @@ HC_LargestFreeBlock(size_t* Size) return p; } +//from: https://stackoverflow.com/questions/14386856/c-check-available-ram size_t HC_coreleft(void) { size_t total = 0; @@ -161,6 +163,7 @@ size_t HC_coreleft(void) return total; } +//far version of above void far* HC_LargestFarFreeBlock(unsigned long* Size) { unsigned long s0, s1; @@ -190,6 +193,7 @@ void far* HC_LargestFarFreeBlock(unsigned long* Size) return p; } +//far version of above unsigned long HC_farcoreleft(void) { unsigned long total = 0UL; -- 2.39.5