Annotation of parser3/src/targets/parser/pool.h, revision 1.2

1.2     ! paf         1: /*
        !             2:   $Id: pa_threads.h,v 1.4 2001/01/29 12:16:07 paf Exp $
        !             3: */
        !             4: 
1.1       paf         5: #ifndef POOL_H
                      6: #define POOL_H
                      7: 
                      8: #include "pa_pool.h"
                      9: 
                     10: class parser_Pool : public Pool {
                     11: public:
                     12:        parser_Pool() : Pool() {}
                     13: 
                     14:        void *malloc(size_t size) {
                     15:                return check(::malloc(size));
                     16:        }
                     17: 
                     18:        void *calloc(size_t size) {
                     19:                return check(::calloc(size, 1));
                     20:        }
                     21: };
                     22: 
                     23: #endif

E-mail: