Annotation of parser3/src/classes/memory.C, revision 1.1.2.1

1.1.2.1 ! paf         1: /** @file
        !             2:        Parser: @b memory parser class.
        !             3: 
        !             4:        Copyright(c) 2001-2003 ArtLebedev Group(http://www.artlebedev.com)
        !             5:        Author: Alexandr Petrosian <paf@design.ru>(http://paf.design.ru)
        !             6: */
        !             7: 
        !             8: static const char* IDENT_MATH_C="$Date: 2003/03/24 13:43:40 $";
        !             9: 
        !            10: #include "pa_common.h"
        !            11: #include "pa_vmemory.h"
        !            12: 
        !            13: class MMemory: public Methoded {
        !            14: public:
        !            15:        MMemory();
        !            16: 
        !            17: public: // Methoded
        !            18:        bool used_directly() { return false; }
        !            19: };
        !            20: 
        !            21: // global variables
        !            22: 
        !            23: DECLARE_CLASS_VAR(memory, 0 /*fictive*/, new MMemory);
        !            24: 
        !            25: static void _compact(Request& r, MethodParams* params) {
        !            26:        GC_gcollect();
        !            27: }
        !            28: 
        !            29: // constructor
        !            30: 
        !            31: MMemory::MMemory(): Methoded("memory") {
        !            32:        // ^compact[]
        !            33:        add_native_method("compact", Method::CT_STATIC, _compact, 0, 0);
        !            34: }

E-mail: