Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff vmalloc.h @ 76:9ddbb071142d
make hardware independent and port to 64bit
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Thu, 16 Jun 2011 14:41:15 +0200 |
| parents | 13b22ffb8a2f |
| children | 521c75d64cef |
line diff
1.1 --- a/vmalloc.h Thu Jun 02 13:55:51 2011 +0200 1.2 +++ b/vmalloc.h Thu Jun 16 14:41:15 2011 +0200 1.3 @@ -11,6 +11,7 @@ 1.4 #define _VMALLOC_H 1.5 1.6 #include <malloc.h> 1.7 +#include <inttypes.h> 1.8 #include "VMS_primitive_data_types.h" 1.9 1.10 typedef struct _MallocProlog MallocProlog; 1.11 @@ -27,12 +28,12 @@ 1.12 typedef struct 1.13 { 1.14 MallocProlog *firstChunkInFreeList; 1.15 - int32 numInList; 1.16 + int32 numInList; //TODO not used 1.17 } 1.18 FreeListHead; 1.19 1.20 void * 1.21 -VMS__malloc( int32 sizeRequested ); 1.22 +VMS__malloc( size_t sizeRequested ); 1.23 1.24 void 1.25 VMS__free( void *ptrToFree ); 1.26 @@ -40,7 +41,7 @@ 1.27 /*Allocates memory from the external system -- higher overhead 1.28 */ 1.29 void * 1.30 -VMS__malloc_in_ext( int32 sizeRequested ); 1.31 +VMS__malloc_in_ext( size_t sizeRequested ); 1.32 1.33 /*Frees memory that was allocated in the external system -- higher overhead 1.34 */
