Debian Codegraph @

vendor/Heap-Layers/legacy/reap/reap.h

raw
1 /*
2
3 Heap Layers: An Extensible Memory Allocation Infrastructure
4
5 Copyright (C) 2000-2020 by Emery Berger
6 http://www.emeryberger.com
7 [email protected]
8
9 Heap Layers is distributed under the terms of the Apache 2.0 license.
10
11 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 */
15
16 #if !defined(_REAP_H_)
17 #define _REAP_H_
18
19 /**
20 * @file reap.h
21 * @brief The Reap API (plus the deprecated region-named API).
22 * @author Emery Berger <http://www.cs.umass.edu/~emery>
23 */
24
25 #if defined(_cplusplus)
26 extern "C" {
27 #endif
28
29 void reapcreate (void ** reap, void ** parent);
30 void * reapmalloc (void ** reap, size_t sz);
31 void reapfree (void ** reap, void * ptr);
32 void reapclear (void ** reap);
33 void reapdestroy (void ** reap);
34
35 int regionFind (void ** reap, void * ptr);
36 void regionCreate (void ** reap, void ** parent);
37 void * regionAllocate (void ** reap, size_t sz);
38 void regionFree (void ** reap, void * ptr);
39 void regionFreeAll (void ** reap);
40 void regionDestroy (void ** reap);
41
42 #if defined(_cplusplus)
43 }
44 #endif
45
46 #endif