From:	CRDGW2::CRDGW2::MRGATE::"SMTP::PREP.AI.MIT.EDU::HELP-GNU-EMACS-REQUEST" 19-MAR-1991 13:03:45.73
To:	ARISIA::EVERHART
CC:	
Subj:	Another patch for VMS emacs.

From:	help-gnu-emacs-request@prep.ai.mit.edu@SMTP@CRDGW2
To:	Everhart@Arisia@MRGATE

Received:  by crdgw1.ge.com (5.57/GE 1.91)
	 id AA20876; Tue, 19 Mar 91 12:03:47 EST
Received: by life.ai.mit.edu (4.1/AI-4.10) id AA20906; Tue, 19 Mar 91 10:46:06 EST
Return-Path: <youngdale@v6550c.nrl.navy.mil>
Received: from V6550C.NRL.NAVY.MIL by life.ai.mit.edu (4.1/AI-4.10) id AA20851; Tue, 19 Mar 91 10:45:02 EST
Date: Tue, 19 Mar 1991 10:49:30 EST
From: youngdale@v6550c.nrl.navy.mil (Eric Youngdale)
To: help-gnu-emacs@prep.ai.mit.edu
Cc: youngdale@v6550c.nrl.navy.mil
Message-Id: <00945d60.86b612e0.7632@v6550c.nrl.navy.mil>
Subject: Another patch for VMS emacs.

	There is another patch that should be made to emacs 18.57, before it is
used under VMS.  I actually discovered this a few weeks ago, but I forgot to
post it here.

	You need to go into s-vms.h, and add a line like:

#define calloc sys_calloc

You will find similar lines for the other memory allocation functions in this
file as well.  What is happening is that in 18.57 someone added a calloc
routine to malloc.c (even though it is not being used by emacs).   The VAXCIO
routines are calling our calloc, which means that impure storage is being
filled with stuff related to VAXCIO.  This patch is a means of making sure
that only emacs functions use the impure storage.

	If you do not make this change, you will run out of impure storage for
one thing, and if you increase the size of impure storage and build in spite of
this, you will notice that things like some command line arguments and the
default directory being restored from the dump file. 

------------------------------------------------------------------
Eric Youngdale          INTERNET:  YOUNGDALE@V6550C.NRL.NAVY.MIL 
Naval Research Lab     	    SPAN:  11.13 (or 11277::) 
Washington, DC	       FLAME-NET:  NLA0:
Disclaimer:  The opinions expressed herein are my own and not necessarily
those of my employer.
