Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > ListOfArrays
changeset 14:70c43c8fbded Renamed_VMS_to_PR
Renamed VMS to PR, in new branch
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Mon, 03 Sep 2012 15:05:31 -0700 |
| parents | 5df9392eca1a |
| children | 7a5228a4a377 |
| files | ListOfArrays.c ListOfArrays.h __brch__MC_shared |
| diffstat | 3 files changed, 8 insertions(+), 8 deletions(-) [+] |
line diff
1.1 --- a/ListOfArrays.c Tue Mar 13 18:31:06 2012 -0700 1.2 +++ b/ListOfArrays.c Mon Sep 03 15:05:31 2012 -0700 1.3 @@ -1,9 +1,9 @@ 1.4 1.5 #include "ListOfArrays.h" 1.6 -#include "VMS_impl/Services_Offered_by_VMS/Memory_Handling/vmalloc.h" 1.7 +#include "PR_impl/Services_Offered_by_PR/Memory_Handling/vmalloc.h" 1.8 1.9 ListOfArrays* makeListOfArrays(size_t entry_size, int num_entries_per_block){ 1.10 - ListOfArrays* newLoA = (ListOfArrays*) VMS_int__malloc(sizeof(ListOfArrays)); 1.11 + ListOfArrays* newLoA = (ListOfArrays*) PR_int__malloc(sizeof(ListOfArrays)); 1.12 newLoA->dim1info = makePrivDynArrayOfSize(&(newLoA->dim1),8); 1.13 1.14 newLoA->entry_size = entry_size; 1.15 @@ -32,15 +32,15 @@ 1.16 } 1.17 1.18 void freeListOfArrays(ListOfArrays* list){ 1.19 - freeDynArrayDeep(list->dim1info,&VMS_int__free); 1.20 - VMS_int__free((void*)list); 1.21 + freeDynArrayDeep(list->dim1info,&PR_int__free); 1.22 + PR_int__free((void*)list); 1.23 } 1.24 1.25 /* 1.26 void addToListOfArraysDependency(Dependency value, ListOfArrays* list){ 1.27 int offset_in_fragment = list->next_free_index % list->num_entries_per_fragment; 1.28 if(offset_in_fragment == 0){ 1.29 - void* newBlock = VMS_int__malloc(list->entry_size * list->num_entries_per_fragment); 1.30 + void* newBlock = PR_int__malloc(list->entry_size * list->num_entries_per_fragment); 1.31 addToDynArray(newBlock,list->dim1info); 1.32 } 1.33 Dependency* typedFragment = (Dependency*) ((list->dim1)[list->dim1info->numInArray -1]); 1.34 @@ -51,7 +51,7 @@ 1.35 void addToListOfArraysUnit(Unit value, ListOfArrays* list){ 1.36 int offset_in_fragment = list->next_free_index % list->num_entries_per_fragment; 1.37 if(offset_in_fragment == 0){ 1.38 - void* newBlock = VMS_int__malloc(list->entry_size * list->num_entries_per_fragment); 1.39 + void* newBlock = PR_int__malloc(list->entry_size * list->num_entries_per_fragment); 1.40 addToDynArray(newBlock,list->dim1info); 1.41 } 1.42 Unit* typedFragment = (Unit*) ((list->dim1)[list->dim1info->numInArray -1]);
2.1 --- a/ListOfArrays.h Tue Mar 13 18:31:06 2012 -0700 2.2 +++ b/ListOfArrays.h Mon Sep 03 15:05:31 2012 -0700 2.3 @@ -31,7 +31,7 @@ 2.4 #define addToListOfArrays(type,value,list) do { \ 2.5 int offset_in_fragment = list->next_free_index % list->num_entries_per_fragment; \ 2.6 if(offset_in_fragment == 0){ \ 2.7 - void* newBlock = VMS_int__malloc(list->entry_size * list->num_entries_per_fragment); \ 2.8 + void* newBlock = PR_int__malloc(list->entry_size * list->num_entries_per_fragment); \ 2.9 addToDynArray(newBlock,list->dim1info); \ 2.10 } \ 2.11 type* typedFragment = (type*) ((list->dim1)[list->dim1info->numInArray -1]); \
3.1 --- a/__brch__MC_shared Tue Mar 13 18:31:06 2012 -0700 3.2 +++ b/__brch__MC_shared Mon Sep 03 15:05:31 2012 -0700 3.3 @@ -1,4 +1,4 @@ 3.4 This branch is for the project structure defined Jan 2012.. the #includes reflect this directory structure. 3.5 3.6 -More importantly, the MC_shared version of VMS requires a separat malloc implemeted by VMS code.. so this branch has modified the library to use the VMS-specific malloc. 3.7 +More importantly, the MC_shared version of PR requires a separat malloc implemeted by PR code.. so this branch has modified the library to use the PR-specific malloc. 3.8
