24 lines
573 B
C
24 lines
573 B
C
/*
|
|
* USER definitions
|
|
*
|
|
* Copyright 1993 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef USER_H
|
|
#define USER_H
|
|
|
|
#include "segmem.h"
|
|
#include "heap.h"
|
|
|
|
/* USER local heap */
|
|
|
|
extern MDESC *USER_Heap;
|
|
|
|
#define USER_HEAP_ALLOC(f,size) ((int)HEAP_Alloc(&USER_Heap,f,size) & 0xffff)
|
|
#define USER_HEAP_REALLOC(handle,size,f) ((int)HEAP_ReAlloc(&USER_Heap, \
|
|
USER_HEAP_ADDR(handle),size,f) & 0xffff)
|
|
#define USER_HEAP_ADDR(handle) ((void *)(handle|((int)USER_Heap & 0xffff0000)))
|
|
#define USER_HEAP_FREE(handle) (HEAP_Free(&USER_Heap,USER_HEAP_ADDR(handle)))
|
|
|
|
#endif /* USER_H */
|