Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > PriorityQueue
changeset 5:09e51191078a MC_shared
updated for VMS name chgs from VMS__malloc to VMS_int__malloc
| author | Me@portablequad |
|---|---|
| date | Sun, 12 Feb 2012 01:45:04 -0800 |
| parents | 7254bef12749 |
| children | cafa35875bab |
| files | PriorityQueue.c |
| diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line diff
1.1 --- a/PriorityQueue.c Sat Feb 11 20:29:34 2012 -0800 1.2 +++ b/PriorityQueue.c Sun Feb 12 01:45:04 2012 -0800 1.3 @@ -20,8 +20,8 @@ 1.4 1.5 #ifdef DEBUG 1.6 #include <stdlib.h> 1.7 -#define VMS__malloc malloc 1.8 -#define VMS__free free 1.9 +#define VMS_WL__malloc malloc 1.10 +#define VMS_WL__free free 1.11 #endif 1.12 1.13 void swap (PrioQueueStruc *Q, int a, int b) { 1.14 @@ -69,21 +69,21 @@ 1.15 newSize= 2*oldSize; 1.16 1.17 Q->maxSize= newSize; 1.18 - newData= VMS__malloc(Q->maxSize*sizeof(heapNode)); 1.19 + newData= VMS_WL__malloc(Q->maxSize*sizeof(heapNode)); 1.20 oldData= Q->data; 1.21 1.22 memcpy(newData,oldData,Q->maxSize*sizeof(heapNode)); 1.23 Q->data= newData; 1.24 1.25 - VMS__free(oldData); 1.26 + VMS_WL__free(oldData); 1.27 } 1.28 1.29 1.30 PrioQueueStruc* makePrioQ () { 1.31 PrioQueueStruc *retQ; 1.32 - retQ= VMS__malloc(sizeof(PrioQueueStruc)); 1.33 + retQ= VMS_int__malloc(sizeof(PrioQueueStruc)); 1.34 retQ->maxSize= 1024; 1.35 - retQ->data= VMS__malloc(retQ->maxSize*sizeof(heapNode)); 1.36 + retQ->data= VMS_int__malloc(retQ->maxSize*sizeof(heapNode)); 1.37 retQ->size= 0; 1.38 return retQ; 1.39 } 1.40 @@ -124,6 +124,6 @@ 1.41 } 1.42 1.43 void freePrioQ (PrioQueueStruc *Q) { 1.44 - VMS__free(Q->data); 1.45 - VMS__free(Q); 1.46 + VMS_int__free(Q->data); 1.47 + VMS_int__free(Q); 1.48 }
