source: libcfa/src/heap.hfa @ ada0246d

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since ada0246d was ada0246d, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

create heap.hfa, use it in malloc.h, and cleanup includes with respect to extern "C"

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[ada0246d]1//
2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// heap.hfa --
8//
9// Author           : Peter A. Buhr
10// Created On       : Tue May 26 11:23:55 2020
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Tue May 26 18:13:56 2020
13// Update Count     : 7
14//
15
16#pragma once
17
18size_t default_mmap_start();                                                    // CFA extras
19size_t default_heap_expansion();
20
21bool traceHeap();
22bool traceHeapOn();
23bool traceHeapOff();
24
25bool traceHeapTerm();
26bool traceHeapTermOn();
27bool traceHeapTermOff();
28
29bool checkFree();
30bool checkFreeOn();
31bool checkFreeOff();
32
33extern "C" {
34        void * aalloc( size_t dim, size_t elemSize );
35        void * resize( void * oaddr, size_t size );
36        void * amemalign( size_t align, size_t dim, size_t elemSize );
37        void * cmemalign( size_t align, size_t noOfElems, size_t elemSize );
38        size_t malloc_size( void * addr );
39        size_t malloc_alignment( void * addr );
40        bool malloc_zero_fill( void * );
41        int malloc_stats_fd( int fd );
42} // extern "C"
43
44void * resize( void * oaddr, size_t nalign, size_t size );
45void * realloc( void * oaddr, size_t nalign, size_t size );
46
47// Local Variables: //
48// mode: c //
49// tab-width: 4 //
50// End: //
Note: See TracBrowser for help on using the repository browser.