source: trunk/include/heapshared.h@ 6666

Last change on this file since 6666 was 6622, checked in by sandervl, 24 years ago

compile fix

File size: 588 bytes
Line 
1/*
2 * Shared heap functions for OS/2
3 *
4 * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
5 *
6 */
7#ifndef __HEAPSHARED_H__
8#define __HEAPSHARED_H__
9
10#include <stddef.h>
11#include <stdlib.h>
12#include <umalloc.h>
13
14#define PAGE_SIZE 4096
15#define MAX_HEAPSIZE (512*1024)
16#define MAX_HEAPPAGES (MAX_HEAPSIZE/PAGE_SIZE)
17#define INCR_HEAPSIZE (16*1024)
18
19extern Heap_t sharedHeap;
20
21BOOL InitializeSharedHeap();
22void DestroySharedHeap();
23DWORD HeapGetSharedMemBase();
24
25#define _smalloc(size) _umalloc(sharedHeap, size)
26#define _sheapmin() _uheapmin(sharedHeap)
27
28#endif
Note: See TracBrowser for help on using the repository browser.