winefile temporary allocations
fgouget at free.fr
Fri May 13 05:43:42 CDT 2005
On Fri, 13 May 2005, Martin Fuchs wrote:
> use macros for platform dependent temporary allocations
> +#define TMP_ALLOC(s) HeapAlloc(GetProcessHeap(), 0, s)
> +#define TMP_FREE(p) HeapFree(GetProcessHeap(), 0, p)
> +#define TMP_ALLOC(s) alloca(s)
> +#define TMP_FREE(p)
Why is this needed?
Doesn't HeapAlloc work on any 'Win32' platform?
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
Before you criticize someone, walk a mile in his shoes.
That way, if he gets angry, he'll be a mile away - and barefoot.
More information about the wine-devel