mirror of
https://github.com/cc65/cc65.git
synced 2024-10-12 15:23:54 +00:00
remove workaround for _heapmaxavail
This commit is contained in:
parent
701c59900d
commit
09f7eb72c2
@ -70,7 +70,7 @@ int main(int argc, char **argv)
|
|||||||
/* allocate buffer */
|
/* allocate buffer */
|
||||||
buffer = malloc(buflen);
|
buffer = malloc(buflen);
|
||||||
if (! buffer) {
|
if (! buffer) {
|
||||||
buflen = _heapmaxavail() - 8; /* get as much as we can */
|
buflen = _heapmaxavail(); /* get as much as we can */
|
||||||
buffer = malloc(buflen);
|
buffer = malloc(buflen);
|
||||||
if (! buffer) {
|
if (! buffer) {
|
||||||
fprintf(stderr, "cannot alloc %ld bytes -- aborting...\n", (long)buflen);
|
fprintf(stderr, "cannot alloc %ld bytes -- aborting...\n", (long)buflen);
|
||||||
|
Loading…
Reference in New Issue
Block a user