Mail Archives: djgpp-workers/1996/04/11/05:49:59
Here is the scoop: amazingly enough, any library function that gets a
pointer to a text in an Emacs buffer, cannot call `malloc', because GNU
malloc can cause relocation of the buffer, which invalidates the passed
pointer. And our `write' does just that when it writes to a text file.
Since `write' will probably be fixed anyway in the future release, for the
time being I just overloaded `__write' on src/msdos.c.
Aha! That was why my alloca-based hack happened to solve the
problem.
If everything goes according to plan, you should see an Emacs pretest in a
day or two that should build cleanly under v2.0, and v2 support should be
part of the official Emacs 19.31 distribution. (Can you imagine to launch
a compilation, or shell out to DOS, and see the results lightning-fast
instead of waiting for Emacs to page itself out?)
It ticked into the source yesterday. Good work!
Morten
- Raw text -