--- parser3/src/classes/file.C 2001/04/27 17:17:57 1.31.2.3 +++ parser3/src/classes/file.C 2001/04/28 15:22:38 1.35 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: file.C,v 1.31.2.3 2001/04/27 17:17:57 paf Exp $ + $Id: file.C,v 1.35 2001/04/28 15:22:38 paf Exp $ */ #include "classes.h" @@ -15,6 +15,8 @@ #include "pa_vint.h" #include "pa_exec.h" +// consts + // defines #define FILE_CLASS_NAME "file" @@ -26,9 +28,12 @@ public: // VStateless_class Value *create_new_value(Pool& pool) { return new(pool) VFile(pool); } +public: // Methoded + bool used_directly() { return true; } + public: MFile(Pool& pool); - bool used_directly() { return true; } + }; // consts @@ -251,8 +256,8 @@ static void _cgi(Request& r, const Strin // constructor -MFile::MFile(Pool& pool) : Methoded(pool) { - set_name(NEW String(pool, FILE_CLASS_NAME)); +MFile::MFile(Pool& apool) : Methoded(apool) { + set_name(*NEW String(pool(), FILE_CLASS_NAME)); // ^save[file-name] @@ -285,5 +290,5 @@ Methoded *file_class; // creator Methoded *MFile_create(Pool& pool) { - return new(pool) MFile(pool); + return file_class=new(pool) MFile(pool); }