|
|
1.1 ! paf 1: #ifndef POOL_H ! 2: #define POOL_H ! 3: ! 4: #include "pa_pool.h" ! 5: ! 6: class parser_Pool : public Pool { ! 7: public: ! 8: parser_Pool() : Pool() {} ! 9: ! 10: void *malloc(size_t size) { ! 11: return check(::malloc(size)); ! 12: } ! 13: ! 14: void *calloc(size_t size) { ! 15: return check(::calloc(size, 1)); ! 16: } ! 17: }; ! 18: ! 19: #endif