|
|
| version 1.18, 2001/03/27 16:35:52 | version 1.20, 2001/04/03 08:23:05 |
|---|---|
| Line 1 | Line 1 |
| /* | /** @file |
| Parser | Parser: @b double parser class. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) |
| $Id$ | $Id$ |
| Line 61 static void _mod(Request& r, const Strin | Line 63 static void _mod(Request& r, const Strin |
| void initialize_double_class(Pool& pool, VStateless_class& vclass) { | void initialize_double_class(Pool& pool, VStateless_class& vclass) { |
| // ^double.int[] | // ^double.int[] |
| vclass.add_native_method("int", _int, 0, 0); | vclass.add_native_method("int", Method::CT_DYNAMIC, _int, 0, 0); |
| // ^double.double[] | // ^double.double[] |
| vclass.add_native_method("double", _double, 0, 0); | vclass.add_native_method("double", Method::CT_DYNAMIC, _double, 0, 0); |
| // ^double.inc[] | // ^double.inc[] |
| // ^double.inc[offset] | // ^double.inc[offset] |
| vclass.add_native_method("inc", _inc, 0, 1); | vclass.add_native_method("inc", Method::CT_DYNAMIC, _inc, 0, 1); |
| // ^double.dec[] | // ^double.dec[] |
| // ^double.dec[offset] | // ^double.dec[offset] |
| vclass.add_native_method("dec", _dec, 0, 1); | vclass.add_native_method("dec", Method::CT_DYNAMIC, _dec, 0, 1); |
| // ^double.mul[k] | // ^double.mul[k] |
| vclass.add_native_method("mul", _mul, 1, 1); | vclass.add_native_method("mul", Method::CT_DYNAMIC, _mul, 1, 1); |
| // ^double.div[d] | // ^double.div[d] |
| vclass.add_native_method("div", _div, 1, 1); | vclass.add_native_method("div", Method::CT_DYNAMIC, _div, 1, 1); |
| // ^double.mod[offset] | // ^double.mod[offset] |
| vclass.add_native_method("mod", _mod, 1, 1); | vclass.add_native_method("mod", Method::CT_DYNAMIC, _mod, 1, 1); |
| // ^double.format[] | // ^double.format{format} |
| vclass.add_native_method("format", _string_format, 1, 1); | vclass.add_native_method("format", Method::CT_DYNAMIC, _string_format, 1, 1); |
| } | } |