]> 4ch.mooo.com Git - 16.git/commitdiff
farcoreleft() is now flexible <3 going to code later like a few days from now later
authorsparky4 <sparky4@cock.li>
Wed, 7 Jun 2017 22:53:13 +0000 (17:53 -0500)
committersparky4 <sparky4@cock.li>
Wed, 7 Jun 2017 22:53:13 +0000 (17:53 -0500)
src/lib/16_hc.c

index 3bd47bb8801d6acb10e7ed848ade71f0c440a16e..1d6bd4cbc5da6ab9c19af8e02954ab6cb0b70760 100755 (executable)
@@ -51,6 +51,7 @@ long HC_Newfarcoreleft()
 }\r
 #endif\r
 \r
+//from: https://stackoverflow.com/questions/14386856/c-check-available-ram\r
 void\r
 #ifdef __BORLANDC__\r
  *\r
@@ -117,6 +118,7 @@ HC_LargestFreeBlock(size_t* Size)
        return p;\r
 }\r
 \r
+//from: https://stackoverflow.com/questions/14386856/c-check-available-ram\r
 size_t HC_coreleft(void)\r
 {\r
        size_t total = 0;\r
@@ -161,6 +163,7 @@ size_t HC_coreleft(void)
        return total;\r
 }\r
 \r
+//far version of above\r
 void far* HC_LargestFarFreeBlock(unsigned long* Size)\r
 {\r
        unsigned long s0, s1;\r
@@ -190,6 +193,7 @@ void far* HC_LargestFarFreeBlock(unsigned long* Size)
        return p;\r
 }\r
 \r
+//far version of above\r
 unsigned long HC_farcoreleft(void)\r
 {\r
        unsigned long total = 0UL;\r