--- parser3/src/classes/double.C 2002/04/10 09:53:13 1.46 +++ parser3/src/classes/double.C 2002/08/01 11:41:12 1.49 @@ -3,10 +3,10 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - - $Id: double.C,v 1.46 2002/04/10 09:53:13 paf Exp $ */ +static const char* IDENT_DOUBLE_C="$Date: 2002/08/01 11:41:12 $"; + #include "classes.h" #include "pa_request.h" #include "pa_vdouble.h" @@ -16,10 +16,6 @@ void _string_format(Request& r, const String& method_name, MethodParams *); -// defines - -#define DOUBLE_CLASS_NAME "double" - // class class MDouble : public Methoded { @@ -38,7 +34,6 @@ static void _int(Request& r, const Strin VDouble *vdouble=static_cast(r.self); Value& result=*new(pool) VInt(pool, vdouble->as_int()); - result.set_name(method_name); r.write_no_lang(result); } @@ -49,7 +44,6 @@ static void _double(Request& r, const St VDouble *vdouble=static_cast(r.self); Value& result=*new(pool) VDouble(pool, vdouble->as_double()); - result.set_name(method_name); r.write_no_lang(result); } @@ -98,16 +92,12 @@ static void _sql(Request& r, const Strin val=0; //calm, compiler } VDouble& result=*new(pool) VDouble(pool, val); - result.set_name(method_name); r.write_assign_lang(result); } // constructor -MDouble::MDouble(Pool& apool) : Methoded(apool) { - set_name(*NEW String(pool(), DOUBLE_CLASS_NAME)); - - +MDouble::MDouble(Pool& apool) : Methoded(apool, "double") { // ^double.int[] add_native_method("int", Method::CT_DYNAMIC, _int, 0, 1);