Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff vmalloc.h @ 146:a49f02980151
fixed: hist index error, zero devision
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Thu, 12 May 2011 14:23:41 +0200 |
| parents | 13b22ffb8a2f |
| children | c11b9dcf6d24 |
line diff
1.1 --- a/vmalloc.h Sat Nov 20 08:19:05 2010 +0100 1.2 +++ b/vmalloc.h Thu May 12 14:23:41 2011 +0200 1.3 @@ -1,57 +1,57 @@ 1.4 -/* 1.5 - * Copyright 2009 OpenSourceCodeStewardshipFoundation.org 1.6 - * Licensed under GNU General Public License version 2 1.7 - * 1.8 - * Author: seanhalle@yahoo.com 1.9 - * 1.10 - * Created on November 14, 2009, 9:07 PM 1.11 - */ 1.12 - 1.13 -#ifndef _VMALLOC_H 1.14 -#define _VMALLOC_H 1.15 - 1.16 -#include <malloc.h> 1.17 -#include "VMS_primitive_data_types.h" 1.18 - 1.19 -typedef struct _MallocProlog MallocProlog; 1.20 - 1.21 -struct _MallocProlog 1.22 - { 1.23 - MallocProlog *nextChunkInFreeList; 1.24 - MallocProlog *prevChunkInFreeList; 1.25 - MallocProlog *nextHigherInMem; 1.26 - MallocProlog *nextLowerInMem; 1.27 - }; 1.28 -//MallocProlog 1.29 - 1.30 -typedef struct 1.31 - { 1.32 - MallocProlog *firstChunkInFreeList; 1.33 - int32 numInList; 1.34 - } 1.35 -FreeListHead; 1.36 - 1.37 -void * 1.38 -VMS__malloc( int32 sizeRequested ); 1.39 - 1.40 -void 1.41 -VMS__free( void *ptrToFree ); 1.42 - 1.43 -/*Allocates memory from the external system -- higher overhead 1.44 - */ 1.45 -void * 1.46 -VMS__malloc_in_ext( int32 sizeRequested ); 1.47 - 1.48 -/*Frees memory that was allocated in the external system -- higher overhead 1.49 - */ 1.50 -void 1.51 -VMS__free_in_ext( void *ptrToFree ); 1.52 - 1.53 - 1.54 -MallocProlog * 1.55 -VMS_ext__create_free_list(); 1.56 - 1.57 -void 1.58 -VMS_ext__free_free_list( MallocProlog *freeListHead ); 1.59 - 1.60 +/* 1.61 + * Copyright 2009 OpenSourceCodeStewardshipFoundation.org 1.62 + * Licensed under GNU General Public License version 2 1.63 + * 1.64 + * Author: seanhalle@yahoo.com 1.65 + * 1.66 + * Created on November 14, 2009, 9:07 PM 1.67 + */ 1.68 + 1.69 +#ifndef _VMALLOC_H 1.70 +#define _VMALLOC_H 1.71 + 1.72 +#include <malloc.h> 1.73 +#include "VMS_primitive_data_types.h" 1.74 + 1.75 +typedef struct _MallocProlog MallocProlog; 1.76 + 1.77 +struct _MallocProlog 1.78 + { 1.79 + MallocProlog *nextChunkInFreeList; 1.80 + MallocProlog *prevChunkInFreeList; 1.81 + MallocProlog *nextHigherInMem; 1.82 + MallocProlog *nextLowerInMem; 1.83 + }; 1.84 +//MallocProlog 1.85 + 1.86 +typedef struct 1.87 + { 1.88 + MallocProlog *firstChunkInFreeList; 1.89 + int32 numInList; 1.90 + } 1.91 +FreeListHead; 1.92 + 1.93 +void * 1.94 +VMS__malloc( int32 sizeRequested ); 1.95 + 1.96 +void 1.97 +VMS__free( void *ptrToFree ); 1.98 + 1.99 +/*Allocates memory from the external system -- higher overhead 1.100 + */ 1.101 +void * 1.102 +VMS__malloc_in_ext( int32 sizeRequested ); 1.103 + 1.104 +/*Frees memory that was allocated in the external system -- higher overhead 1.105 + */ 1.106 +void 1.107 +VMS__free_in_ext( void *ptrToFree ); 1.108 + 1.109 + 1.110 +MallocProlog * 1.111 +VMS_ext__create_free_list(); 1.112 + 1.113 +void 1.114 +VMS_ext__free_free_list( MallocProlog *freeListHead ); 1.115 + 1.116 #endif 1.117 \ No newline at end of file
