Shrink Vectorize buffer and use MemoryMgr calls

This lets the build run in Mini vMac (8 MB Mac II). For some reason, calloc can't create buffers as large as NewPtr.
This commit is contained in:
Elliot Nunn 2017-10-30 16:54:57 +08:00
parent 3d17253346
commit 3fd8dde36b

View File

@ -403,11 +403,13 @@ int main(int argc, char **argv)
}
dest.buf = dest.at = calloc(0x400000, 1);
dest.buf = dest.at = NewPtr(0x100000);
if(!dest.buf)
{
fprintf(stderr, ERRSTR "Failed to calloc 4MB dest buffer\n");
return 1;
}
memset(dest.buf, 0, 0x100000);
/* Create a First record (remember that MPW objects are fully ascending) */
dest.at[0] = 1;