# HG changeset patch # User Me@portablequad # Date 1329039904 28800 # Node ID 09e51191078a95e09948402771ad4b8183970f51 # Parent 7254bef12749e1d9bccf5dffc80c2653e40020c3 updated for VMS name chgs from VMS__malloc to VMS_int__malloc diff -r 7254bef12749 -r 09e51191078a PriorityQueue.c --- a/PriorityQueue.c Sat Feb 11 20:29:34 2012 -0800 +++ b/PriorityQueue.c Sun Feb 12 01:45:04 2012 -0800 @@ -20,8 +20,8 @@ #ifdef DEBUG #include -#define VMS__malloc malloc -#define VMS__free free +#define VMS_WL__malloc malloc +#define VMS_WL__free free #endif void swap (PrioQueueStruc *Q, int a, int b) { @@ -69,21 +69,21 @@ newSize= 2*oldSize; Q->maxSize= newSize; - newData= VMS__malloc(Q->maxSize*sizeof(heapNode)); + newData= VMS_WL__malloc(Q->maxSize*sizeof(heapNode)); oldData= Q->data; memcpy(newData,oldData,Q->maxSize*sizeof(heapNode)); Q->data= newData; - VMS__free(oldData); + VMS_WL__free(oldData); } PrioQueueStruc* makePrioQ () { PrioQueueStruc *retQ; - retQ= VMS__malloc(sizeof(PrioQueueStruc)); + retQ= VMS_int__malloc(sizeof(PrioQueueStruc)); retQ->maxSize= 1024; - retQ->data= VMS__malloc(retQ->maxSize*sizeof(heapNode)); + retQ->data= VMS_int__malloc(retQ->maxSize*sizeof(heapNode)); retQ->size= 0; return retQ; } @@ -124,6 +124,6 @@ } void freePrioQ (PrioQueueStruc *Q) { - VMS__free(Q->data); - VMS__free(Q); + VMS_int__free(Q->data); + VMS_int__free(Q); }