Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > ListOfArrays
changeset 13:7128ffdcc797 MC_shared
have allocation in coreloop use VMS_WL__malloc
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Mon, 29 Oct 2012 16:53:01 +0100 |
| parents | abf2117d7535 |
| children | |
| files | ListOfArrays.h |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/ListOfArrays.h Fri Aug 31 18:27:26 2012 +0200 1.2 +++ b/ListOfArrays.h Mon Oct 29 16:53:01 2012 +0100 1.3 @@ -37,7 +37,7 @@ 1.4 #define addToListOfArrays_ext(type,value,list) do { \ 1.5 int offset_in_fragment = list->next_free_index % list->num_entries_per_fragment; \ 1.6 if(offset_in_fragment == 0 && (list->next_free_index / list->num_entries_per_fragment) >= list->dim1info->numInArray){ \ 1.7 - void* newBlock = malloc(list->entry_size * list->num_entries_per_fragment); \ 1.8 + void* newBlock = VMS_WL__malloc(list->entry_size * list->num_entries_per_fragment); \ 1.9 addToDynArray(newBlock,list->dim1info); \ 1.10 } \ 1.11 type* typedFragment = (type*) ((list->dim1)[list->dim1info->numInArray -1]); \
