view prmalloc.h @ 0:d460a47ed2d6

public headers for the initial ML split into libraries, as seed for Univ
author Sean Halle <seanhalle@yahoo.com>
date Thu, 08 Aug 2013 02:39:56 -0700
parents
children 14241f07f742
line source
1 /*
2 * Copyright 2009 OpenSourceCodeStewardshipFoundation.org
3 * Licensed under GNU General Public License version 2
4 *
5 * Author: seanhalle@yahoo.com
6 *
7 * Created on November 14, 2009, 9:07 PM
8 */
10 #ifndef _PRMALLOC_H
11 #define _PRMALLOC_H
13 #include <malloc.h>
14 #include <inttypes.h>
15 #include <math.h>
16 #include <PR__include/PR__primitive_data_types.h>
18 void *
19 PR_int__malloc( size_t sizeRequested );
21 void *
22 PR_int__malloc_aligned( size_t sizeRequested );
24 void
25 PR_int__free( void *ptrToFree );
27 //Use these in application code directly
28 #define \
29 PR__malloc PR_WL__malloc
31 #define \
32 PR__free PR_WL__free
34 //these are implemented in the PR leaf implementation
35 void *
36 PR_WL__malloc( int32 sizeRequested );
38 void
39 PR_WL__free( void *ptrToFree );
42 /*Allocates memory from the external system -- higher overhead
43 */
44 void *
45 PR_ext__malloc_in_ext( size_t sizeRequested );
47 /*Frees memory that was allocated in the external system -- higher overhead
48 */
49 void
50 PR_ext__free_in_ext( void *ptrToFree );
52 #endif