Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
diff PrivateQueue.c @ 44:67c7f5a0308b
Renamed VMS to PR, in new branch
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Fri, 08 Mar 2013 05:40:08 -0800 |
| parents | d01d48b023ca |
| children | 1ea30ca7093c |
line diff
1.1 --- a/PrivateQueue.c Mon Sep 03 15:07:45 2012 -0700 1.2 +++ b/PrivateQueue.c Fri Mar 08 05:40:08 2013 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright 2009 OpenSourceStewardshipFoundation.org 1.6 + * Copyright 2009 OpenSourceResearchInstitute.org 1.7 * Licensed under GNU General Public License version 2 1.8 * 1.9 * NOTE: this version of SRSW correct as of April 25, 2010 1.10 @@ -40,6 +40,9 @@ 1.11 } 1.12 1.13 1.14 +/*A bit tricky, 'cause have to copy in two halves, and be careful about case 1.15 + * when insert is at top and extract at bottom.. 1.16 + */ 1.17 void 1.18 enlargePrivQ( PrivQueueStruc *Q ) 1.19 { int32 oldSize, newSize, topPartSize, bottPartSize; 1.20 @@ -283,10 +286,12 @@ 1.21 } 1.22 1.23 1.24 - void 1.25 - freePrivQ( PrivQueueStruc *Q ) 1.26 - { 1.27 - //This free is not safe to use in wrapper lib nor app code! 1.28 - PR_int__free( Q->startOfData ); 1.29 - PR_int__free( Q ); 1.30 - } 1.31 \ No newline at end of file 1.32 +/*NOTE: This free is not safe to use in wrapper lib nor app code 1.33 + */ 1.34 +void 1.35 +freePrivQ( PrivQueueStruc *Q ) 1.36 + { 1.37 + //This free is not safe to use in wrapper lib nor app code! 1.38 + PR_int__free( Q->startOfData ); 1.39 + PR_int__free( Q ); 1.40 + }
