Diff for /parser3/src/targets/cgi/Attic/pa_pool.C between versions 1.3 and 1.33

version 1.3, 2001/03/23 19:25:17 version 1.33, 2001/12/13 13:02:43
Line 1 Line 1
 /*  /** @file
         Parser          Parser: CGI memory manager impl.
   
         Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)          Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru)
   
         $Id$          $Id$
 */  */
   
 #include <stdlib.h>  
   
 #include "pa_pool.h"  #include "pa_pool.h"
   #include "pool_storage.h"
   
 void *Pool::real_malloc(size_t size) {  void *Pool::real_malloc(size_t size, int place) {
         return ::malloc(size);          return fstorage?
                   static_cast<Pool_storage *>(fstorage)->malloc(size): ::malloc(size);
 }  }
   
 void *Pool::real_calloc(size_t size) {  void *Pool::real_calloc(size_t size) {
         return ::calloc(size, 1);          return fstorage?
                   static_cast<Pool_storage *>(fstorage)->calloc(size): ::calloc(size, 1);
 }  }
   
   bool Pool::real_register_cleanup(void (*cleanup) (void *), void *data) {
           return fstorage!=0 && static_cast<Pool_storage *>(fstorage)->register_cleanup(cleanup, data);
   }
   

Removed from v.1.3  
changed lines
  Added in v.1.33


E-mail: