delorie.com/archives/browse.cgi | search |
From: | Nate Eldredge <neldredge AT hmc DOT edu> |
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: | <wkbta7v2tg DOT fsf AT mail DOT ndh DOT net> <199910111717 DOT TAA11904 AT public DOT ndh DOT com> |
NNTP-Posting-Host: | mercury.st.hmc.edu |
Mime-Version: | 1.0 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |