Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > ListOfArrays
comparison ListOfArrays.c @ 7:94a5b324bc29
fixed include paths
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Fri, 09 Mar 2012 18:22:54 -0800 |
| parents | 79982974d355 |
| children | 0e6cc9d9ec67 |
comparison
equal
deleted
inserted
replaced
| 4:798984e6ff78 | 5:291bcff7e263 |
|---|---|
| 1 | 1 |
| 2 #include "ListOfArrays.h" | 2 #include "ListOfArrays.h" |
| 3 #include "../../VMS_Implementations/VMS_impl/vmalloc.h" | 3 #include "VMS_impl/vmalloc.h" |
| 4 | 4 |
| 5 ListOfArrays* makeListOfArrays(size_t entry_size, int num_entries_per_block){ | 5 ListOfArrays* makeListOfArrays(size_t entry_size, int num_entries_per_block){ |
| 6 ListOfArrays* newLoA = (ListOfArrays*) VMS__malloc(sizeof(ListOfArrays)); | 6 ListOfArrays* newLoA = (ListOfArrays*) VMS__malloc(sizeof(ListOfArrays)); |
| 7 newLoA->dim1info = makePrivDynArrayOfSize(&(newLoA->dim1),8); | 7 newLoA->dim1info = makePrivDynArrayOfSize(&(newLoA->dim1),8); |
| 8 | 8 |
| 57 Unit* typedFragment = (Unit*) ((list->dim1)[list->dim1info->numInArray -1]); | 57 Unit* typedFragment = (Unit*) ((list->dim1)[list->dim1info->numInArray -1]); |
| 58 typedFragment[offset_in_fragment] = value; | 58 typedFragment[offset_in_fragment] = value; |
| 59 list->next_free_index++; | 59 list->next_free_index++; |
| 60 } | 60 } |
| 61 */ | 61 */ |
| 62 |
