diff PrivateQueue.c @ 48:1ea30ca7093c

changed headers
author Sean Halle <seanhalle@yahoo.com>
date Tue, 23 Jul 2013 07:28:22 -0700
parents 67c7f5a0308b
children 083298a6f7b6
line diff
     1.1 --- a/PrivateQueue.c	Mon Jul 22 07:05:57 2013 -0700
     1.2 +++ b/PrivateQueue.c	Tue Jul 23 07:28:22 2013 -0700
     1.3 @@ -14,6 +14,7 @@
     1.4  #include <stdlib.h>
     1.5  
     1.6  #include "PrivateQueue.h"
     1.7 +#include "PR__common_includes/Services_offered_by_PR/Memory_Handling/vmalloc__wrapper_library.h"
     1.8  
     1.9  
    1.10  
    1.11 @@ -27,10 +28,10 @@
    1.12   {
    1.13     PrivQueueStruc* retQ;
    1.14        //This malloc is not safe to use in wrapper lib nor app code!
    1.15 -   retQ = (PrivQueueStruc *) PR_int__malloc( sizeof( PrivQueueStruc ) );
    1.16 +   retQ = (PrivQueueStruc *) PR__malloc( sizeof( PrivQueueStruc ) );
    1.17  
    1.18        //This malloc is not safe to use in wrapper lib nor app code!
    1.19 -   retQ->startOfData = PR_int__malloc( 1024 * sizeof(void *) );
    1.20 +   retQ->startOfData = PR__malloc( 1024 * sizeof(void *) );
    1.21     memset( retQ->startOfData, 0, 1024 * sizeof(void *) );
    1.22     retQ->extractPos = &(retQ->startOfData[0]); //side by side == empty
    1.23     retQ->insertPos  = &(retQ->startOfData[1]); // so start pos's have to be
    1.24 @@ -64,7 +65,7 @@
    1.25     newSize            = 2 * oldSize;
    1.26     
    1.27        //This malloc is not safe to use in wrapper lib nor app code!
    1.28 -   Q->startOfData     = (void **)PR_int__malloc( newSize );
    1.29 +   Q->startOfData     = (void **)PR__malloc( newSize );
    1.30     newStartOfData     = (int8 *)Q->startOfData;
    1.31     newEndOfData       = newStartOfData + newSize; //all calcs in Bytes
    1.32     Q->endOfData       = (void **)newEndOfData;
    1.33 @@ -102,7 +103,7 @@
    1.34        Q->insertPos  = (void **)(newStartOfData + bottPartSize);
    1.35      }
    1.36        //This free is not safe to use in wrapper lib nor app code!
    1.37 -   PR_int__free(oldStartOfData);    
    1.38 +   PR__free(oldStartOfData);    
    1.39   }
    1.40  
    1.41  
    1.42 @@ -292,6 +293,6 @@
    1.43  freePrivQ( PrivQueueStruc *Q )
    1.44   {
    1.45       //This free is not safe to use in wrapper lib nor app code!
    1.46 -   PR_int__free( Q->startOfData );
    1.47 -   PR_int__free( Q );
    1.48 +   PR__free( Q->startOfData );
    1.49 +   PR__free( Q );
    1.50   }