From: Nate Eldredge Newsgroups: comp.os.msdos.djgpp Subject: Re: xmalloc and xfree Date: Mon, 11 Oct 1999 22:13:27 -0700 Organization: Harvey Mudd College Lines: 19 Message-ID: <3802C377.F8AC8FDD@hmc.edu> References: <199910111717 DOT TAA11904 AT public DOT ndh DOT com> NNTP-Posting-Host: mercury.st.hmc.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: nntp1.interworld.net 939705250 97807 134.173.45.219 (12 Oct 1999 05:14:10 GMT) X-Complaints-To: usenet AT nntp1 DOT interworld DOT net NNTP-Posting-Date: 12 Oct 1999 05:14:10 GMT X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.13pre12 i586) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Felix Natter wrote: > > thanks for your help, > but the problem is that the prototypes > for 'xmalloc' and 'xfree' are (were) commented out > in include/stdlib.h. > shouldn't this be fixed with regard to djdev2.03, > or is it already ? It is intentional and will stay. Many programs define their own xmalloc/xfree, with their own prototypes. If they were prototyped in stdlib.h, these programs would not compile. The correct way to deal with it is to add your own prototypes, in your source file. If you're using C++, be sure to mark them `extern "C"'. -- Nate Eldredge neldredge AT hmc DOT edu