realloc() failing under DOS (why it does'nt ...)
- Posted by pseudonomus at yahoo.com Nov 07, 2001
- 463 views
This one goes out to Robert. As the source to the interpreter and translator will soon be released, there is one thing that boggles my mind. How does Euphoria solve the problem with realloc()/malloc() failing under dos? As you might know, realloc(), malloc() and calloc() for Watcom DOS32 and DJGPP fail when allocating a couple of megs, even if it's just a fraction of the amount you have physycally installed. Plus, realloc() for DJGPP is extremely slow, yet appending to sequences seems to be quite fast. append() calls realloc(), yet it doesn't fail when called a lot, why? We (future Eu source hackers!) must know because if the Euphoria source does not use standard implementations of malloc(), realloc(), etc., then it will not be portable to other plaftorms (such as FreeBSD, OS/2, MacOS, etc.) that easilly. And, when will the source be released anyways?