Re: A question about #define WIN32 in dmalloc.c

From: Joe Cooper <joe@dont-contact.us>
Date: Sun, 01 Sep 2002 06:11:47 -0500

maer wrote:
> Hi, everyone!
>
> Look at the source codes in dmalloc.c,
>
> --------
> /* #define WIN32 */
> #ifdef WIN32
> #define MORECORE wsbrk
> #endif
> --------
>
> Such is the comments,
>
> --------
> WIN32 (default: undefined)
> Define this on MS win (95, nt) platforms to compile in sbrk emulation.
> --------
>
> I have two questions,
>
> 1. What means WIN32? When the variable "WIN32" becomes
> defined? When it is not defined?

WIN32 == Any modern Windows platform (Windows 95 through Windows XP)

It is defined when building on a Win32 platform.

> 2. What means "sbrk" in the comment? What means "wsbrk"?

I have no idea.

-- 
Joe Cooper <joe@swelltech.com>
Web caching appliances and support.
http://www.swelltech.com
Received on Sun Sep 01 2002 - 05:15:19 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:24 MST