Message-ID: <3BB5FAAD.AB8B09C1@worldnet.att.net> From: Les Cargill X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: what's #include ? References: <3BB5378E DOT 8E596BC8 AT worldnet DOT att DOT net> <3BB56F83 DOT 5DD6EEAB AT yahoo DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 54 Date: Sat, 29 Sep 2001 16:42:58 GMT NNTP-Posting-Host: 12.86.209.138 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1001781778 12.86.209.138 (Sat, 29 Sep 2001 16:42:58 GMT) NNTP-Posting-Date: Sat, 29 Sep 2001 16:42:58 GMT Organization: AT&T Worldnet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com CBFalconer wrote: > > Les Cargill wrote: > > > > cwg wrote: > > > > > > it's in the turbo-c project i'm working on. > > > what would be the djgpp replacement? > > > > Possibly ? grep is our friend... > > No, it is in . The C standard is your friend. > If he was interested in the 'C' standard, he would have looked there first. Just to be persnickety, he asked about . There are things declared there other than malloc(). There is probably no direct replacement in GNU. I don't know. Never had to ask the question before. I also noticed, in the Borland , this: File MALLOC.H: /* malloc.h #if !defined(__MALLOC_H) #define __MALLOC_H #if !defined(__ALLOC_H) #include Borland's is sorta disjoint from the GNU usual stuff. malloc() does get prototyped in both places in Borland. There are other malloc() variants, and more of them appear in than in . I always disliked that - it should appear in one place. In general, my preferred method of resolving includes when porting to an unfmailiar environment is to remove the offending include, making sure -Wall(or equivalent) is on, and making a list of all the prototype errors. grep for those, then massage until warnings disappear. > -- > Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) > (Remove "XXXX" from reply address. yahoo works unmodified) > mailto:uce AT ftc DOT gov (for spambots to harvest) -- http://home.att.net/~lcargill