# HG changeset patch # User Sean Halle # Date 1346709931 25200 # Node ID 70c43c8fbded411bab2cd9e25d1db7e49288783d # Parent 5df9392eca1a7795f2dd0addd2c89fd423bf15ed Renamed VMS to PR, in new branch diff -r 5df9392eca1a -r 70c43c8fbded ListOfArrays.c --- a/ListOfArrays.c Tue Mar 13 18:31:06 2012 -0700 +++ b/ListOfArrays.c Mon Sep 03 15:05:31 2012 -0700 @@ -1,9 +1,9 @@ #include "ListOfArrays.h" -#include "VMS_impl/Services_Offered_by_VMS/Memory_Handling/vmalloc.h" +#include "PR_impl/Services_Offered_by_PR/Memory_Handling/vmalloc.h" ListOfArrays* makeListOfArrays(size_t entry_size, int num_entries_per_block){ - ListOfArrays* newLoA = (ListOfArrays*) VMS_int__malloc(sizeof(ListOfArrays)); + ListOfArrays* newLoA = (ListOfArrays*) PR_int__malloc(sizeof(ListOfArrays)); newLoA->dim1info = makePrivDynArrayOfSize(&(newLoA->dim1),8); newLoA->entry_size = entry_size; @@ -32,15 +32,15 @@ } void freeListOfArrays(ListOfArrays* list){ - freeDynArrayDeep(list->dim1info,&VMS_int__free); - VMS_int__free((void*)list); + freeDynArrayDeep(list->dim1info,&PR_int__free); + PR_int__free((void*)list); } /* void addToListOfArraysDependency(Dependency value, ListOfArrays* list){ int offset_in_fragment = list->next_free_index % list->num_entries_per_fragment; if(offset_in_fragment == 0){ - void* newBlock = VMS_int__malloc(list->entry_size * list->num_entries_per_fragment); + void* newBlock = PR_int__malloc(list->entry_size * list->num_entries_per_fragment); addToDynArray(newBlock,list->dim1info); } Dependency* typedFragment = (Dependency*) ((list->dim1)[list->dim1info->numInArray -1]); @@ -51,7 +51,7 @@ void addToListOfArraysUnit(Unit value, ListOfArrays* list){ int offset_in_fragment = list->next_free_index % list->num_entries_per_fragment; if(offset_in_fragment == 0){ - void* newBlock = VMS_int__malloc(list->entry_size * list->num_entries_per_fragment); + void* newBlock = PR_int__malloc(list->entry_size * list->num_entries_per_fragment); addToDynArray(newBlock,list->dim1info); } Unit* typedFragment = (Unit*) ((list->dim1)[list->dim1info->numInArray -1]); diff -r 5df9392eca1a -r 70c43c8fbded ListOfArrays.h --- a/ListOfArrays.h Tue Mar 13 18:31:06 2012 -0700 +++ b/ListOfArrays.h Mon Sep 03 15:05:31 2012 -0700 @@ -31,7 +31,7 @@ #define addToListOfArrays(type,value,list) do { \ int offset_in_fragment = list->next_free_index % list->num_entries_per_fragment; \ if(offset_in_fragment == 0){ \ - void* newBlock = VMS_int__malloc(list->entry_size * list->num_entries_per_fragment); \ + void* newBlock = PR_int__malloc(list->entry_size * list->num_entries_per_fragment); \ addToDynArray(newBlock,list->dim1info); \ } \ type* typedFragment = (type*) ((list->dim1)[list->dim1info->numInArray -1]); \ diff -r 5df9392eca1a -r 70c43c8fbded __brch__MC_shared --- a/__brch__MC_shared Tue Mar 13 18:31:06 2012 -0700 +++ b/__brch__MC_shared Mon Sep 03 15:05:31 2012 -0700 @@ -1,4 +1,4 @@ This branch is for the project structure defined Jan 2012.. the #includes reflect this directory structure. -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. +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.