Mercurial > cgi-bin > hgwebdir.cgi > PR > PR_Implementations > PR__Univ > PR__includes > PR__include
view prmalloc.h @ 1:14241f07f742
committing files from /usr/include/PR__include directly.. test..
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Thu, 08 Aug 2013 03:00:36 -0700 |
| parents | d460a47ed2d6 |
| children | c3829f630c2f |
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
