Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison vmalloc.h @ 50:8f7141a9272e
Added VMS__malloc and probes, and major re-factoring to separate mallocs
| author | Me |
|---|---|
| date | Sat, 30 Oct 2010 20:54:36 -0700 |
| parents | |
| children | 42dd44df1bb0 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:5cfc9fbfa18a |
|---|---|
| 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 */ | |
| 9 | |
| 10 #include <malloc.h> | |
| 11 #include "VMS_primitive_data_types.h" | |
| 12 | |
| 13 typedef struct _MallocProlog MallocProlog; | |
| 14 | |
| 15 struct _MallocProlog | |
| 16 { | |
| 17 MallocProlog *nextChunkInFreeList; | |
| 18 MallocProlog *prevChunkInFreeList; | |
| 19 MallocProlog *nextHigherInMem; | |
| 20 MallocProlog *nextLowerInMem; | |
| 21 }; | |
| 22 //MallocProlog | |
| 23 | |
| 24 typedef struct | |
| 25 { | |
| 26 MallocProlog *firstChunkInFreeList; | |
| 27 int32 numInList; | |
| 28 } | |
| 29 FreeListHead; | |
| 30 | |
| 31 void * | |
| 32 VMS__malloc( int32 sizeRequested ); | |
| 33 | |
| 34 void | |
| 35 VMS__free( void *ptrToFree ); | |
| 36 | |
| 37 MallocProlog * | |
| 38 VMS__create_free_list(); | |
| 39 | |
| 40 void | |
| 41 VMS_ext__free_free_list( MallocProlog *freeListHead ); |
