www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/04/11/05:49:59

Date: Thu, 11 Apr 1996 11:42:40 +0200
Message-Id: <199604110942.LAA14115@tyr.diku.dk>
From: Morten Welinder <terra AT diku DOT dk>
To: eliz AT is DOT elta DOT co DOT il
CC: djgpp-workers AT delorie DOT com
In-reply-to: <Pine.SUN.3.91.960411120916.27524W-100000@is> (message from Eli
Zaretskii on Thu, 11 Apr 1996 12:20:42 +0200 (IST))
Subject: Re: Emacs works under v2.0!

   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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019