Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
diff PrivateQueue.c @ 43:d01d48b023ca
Renamed VMS to PR, in new branch
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Mon, 03 Sep 2012 15:07:45 -0700 |
| parents | b9cb01d8ce56 |
| children | 67c7f5a0308b |
line diff
1.1 --- a/PrivateQueue.c Wed Jun 06 18:00:59 2012 -0700 1.2 +++ b/PrivateQueue.c Mon Sep 03 15:07:45 2012 -0700 1.3 @@ -27,10 +27,10 @@ 1.4 { 1.5 PrivQueueStruc* retQ; 1.6 //This malloc is not safe to use in wrapper lib nor app code! 1.7 - retQ = (PrivQueueStruc *) VMS_int__malloc( sizeof( PrivQueueStruc ) ); 1.8 + retQ = (PrivQueueStruc *) PR_int__malloc( sizeof( PrivQueueStruc ) ); 1.9 1.10 //This malloc is not safe to use in wrapper lib nor app code! 1.11 - retQ->startOfData = VMS_int__malloc( 1024 * sizeof(void *) ); 1.12 + retQ->startOfData = PR_int__malloc( 1024 * sizeof(void *) ); 1.13 memset( retQ->startOfData, 0, 1024 * sizeof(void *) ); 1.14 retQ->extractPos = &(retQ->startOfData[0]); //side by side == empty 1.15 retQ->insertPos = &(retQ->startOfData[1]); // so start pos's have to be 1.16 @@ -61,7 +61,7 @@ 1.17 newSize = 2 * oldSize; 1.18 1.19 //This malloc is not safe to use in wrapper lib nor app code! 1.20 - Q->startOfData = (void **)VMS_int__malloc( newSize ); 1.21 + Q->startOfData = (void **)PR_int__malloc( newSize ); 1.22 newStartOfData = (int8 *)Q->startOfData; 1.23 newEndOfData = newStartOfData + newSize; //all calcs in Bytes 1.24 Q->endOfData = (void **)newEndOfData; 1.25 @@ -99,7 +99,7 @@ 1.26 Q->insertPos = (void **)(newStartOfData + bottPartSize); 1.27 } 1.28 //This free is not safe to use in wrapper lib nor app code! 1.29 - VMS_int__free(oldStartOfData); 1.30 + PR_int__free(oldStartOfData); 1.31 } 1.32 1.33 1.34 @@ -287,6 +287,6 @@ 1.35 freePrivQ( PrivQueueStruc *Q ) 1.36 { 1.37 //This free is not safe to use in wrapper lib nor app code! 1.38 - VMS_int__free( Q->startOfData ); 1.39 - VMS_int__free( Q ); 1.40 + PR_int__free( Q->startOfData ); 1.41 + PR_int__free( Q ); 1.42 } 1.43 \ No newline at end of file
