www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/20/15:40:51

Date: Thu, 21 Nov 1996 09:30:00 +0000
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: What are these weird functions?
To: tehmul%NIITPUN AT iris DOT ernet DOT in
Cc: djgpp AT delorie DOT com
Reply-to: billc AT blackmagic DOT tait DOT co DOT nz
Message-id: <32942118.5C74@blackmagic.tait.co.nz>
Organization: Tait Electronics NZ
MIME-version: 1.0
References: <6463083001E72A00 AT iris DOT ernet DOT in>

tehmul%NIITPUN AT iris DOT ernet DOT in wrote:
> 
> 
> HI.
> I downloaded the zlib_pc library so that I can read .z files directly in my
> programs instead of unpacking them using compress -d ...
> I built the library w/o any problem.  When I linked it to my program, I got
> errors on unknown external symbols halloc and hfree.  I grep'ed the zlib_pc
> sources and found halloc and hfree.  The calls looked similar to calloc and
> free, so I changed it and it worked!  I still am curious about halloc and
> hfree.  What are they supposed to be?  I couldn't find any C book which talks
> about these functions.  Are they the remnants of some bygone era or
> something?

Hmm.. which makefile did you use?  There is one specifically for djgpp
v2 (makefile.dj2).

It appears halloc and hfree are from MSC and are only called if that
what you are compiling for.

Bill
-- 
Leave others their otherness.

- Raw text -


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