Diff for /parser3/src/classes/void.C between versions 1.22 and 1.24

version 1.22, 2002/08/15 10:38:18 version 1.24, 2002/08/20 09:37:31
Line 25  public: // Methoded Line 25  public: // Methoded
   
 // methods  // methods
   
   static void _length(Request& r, const String&, MethodParams *params) {
           Pool& pool=r.pool();
           // always zero
           r.write_no_lang(*new(pool) VInt(pool, 0));
   }
   
   static void _pos(Request& r, const String& method_name, MethodParams *params) {
           Pool& pool=r.pool();
   
           Value& substr=params->as_no_junction(0, "substr must not be code");
           // never found
           r.write_assign_lang(*new(pool) VInt(pool, -1));
   }
   
 static void _int(Request& r, const String&, MethodParams *params) {  static void _int(Request& r, const String&, MethodParams *params) {
         Pool& pool=r.pool();          Pool& pool=r.pool();
         VVoid *vvoid=static_cast<VVoid *>(r.self);          VVoid *vvoid=static_cast<VVoid *>(r.self);
Line 79  static void _sql(Request& r, const Strin Line 93  static void _sql(Request& r, const Strin
 // constructor  // constructor
   
 MVoid::MVoid(Pool& apool) : Methoded(apool, "void") {  MVoid::MVoid(Pool& apool) : Methoded(apool, "void") {
           // ^void.length[] 
           add_native_method("length", Method::CT_DYNAMIC, _length, 0, 0);
   
           // ^void.pos[substr]
           add_native_method("pos", Method::CT_DYNAMIC, _pos, 1, 1);
   
         // ^void.int[]           // ^void.int[] 
         // ^void.int(default)          // ^void.int(default)
         add_native_method("int", Method::CT_DYNAMIC, _int, 0, 1);          add_native_method("int", Method::CT_DYNAMIC, _int, 0, 1);

Removed from v.1.22  
changed lines
  Added in v.1.24


E-mail: