4 * Copyright 1993 Alexandre Julliard
17 #define USER_HEAP_ALLOC(f,size) LocalAlloc (f, size)
18 #define USER_HEAP_REALLOC(handle,size,f) LocalReAlloc (handle,size,f)
19 #define USER_HEAP_LIN_ADDR(handle) LocalLock (handle)
20 #define USER_HEAP_SEG_ADDR(handle) LocalLock (handle)
21 #define USER_HEAP_FREE(handle) LocalFree (handle)
24 extern LPSTR USER_Heap
;
25 extern WORD USER_HeapSel
;
27 #define USER_HEAP_ALLOC(size) \
28 LOCAL_Alloc( USER_HeapSel, LMEM_FIXED, (size) )
29 #define USER_HEAP_REALLOC(handle,size) \
30 LOCAL_ReAlloc( USER_HeapSel, (handle), (size), LMEM_FIXED )
31 #define USER_HEAP_FREE(handle) \
32 LOCAL_Free( USER_HeapSel, (handle) )
33 #define USER_HEAP_LIN_ADDR(handle) \
34 ((handle) ? PTR_SEG_OFF_TO_LIN(USER_HeapSel, (handle)) : NULL)
35 #define USER_HEAP_SEG_ADDR(handle) \
36 ((handle) ? MAKELONG((handle), USER_HeapSel) : 0)