Diff for /parser3/src/classes/file.C between versions 1.44 and 1.45

version 1.44, 2001/07/20 09:40:46 version 1.45, 2001/07/24 09:45:27
Line 59  static void _delete(Request& r, const St Line 59  static void _delete(Request& r, const St
         file_delete(pool, r.absolute(vfile_name.as_string()));          file_delete(pool, r.absolute(vfile_name.as_string()));
 }  }
   
   static void _move(Request& r, const String&, MethodParams *params) {
           Pool& pool=r.pool();
           Value& vfrom_file_name=params->as_no_junction(0, "from file name must not be code");
           Value& vto_file_name=params->as_no_junction(1, "to file name must not be code");
   
           // unlink
           file_move(pool, 
                   r.absolute(vfrom_file_name.as_string()),
                   r.absolute(vto_file_name.as_string()));
   }
   
 static void _find(Request& r, const String& method_name, MethodParams *params) {  static void _find(Request& r, const String& method_name, MethodParams *params) {
         Pool& pool=r.pool();          Pool& pool=r.pool();
         Value& vfile_name=params->as_no_junction(0, "file name must not be code");          Value& vfile_name=params->as_no_junction(0, "file name must not be code");
Line 279  MFile::MFile(Pool& apool) : Methoded(apo Line 290  MFile::MFile(Pool& apool) : Methoded(apo
         // ^delete[file-name]          // ^delete[file-name]
         add_native_method("delete", Method::CT_STATIC, _delete, 1, 1);          add_native_method("delete", Method::CT_STATIC, _delete, 1, 1);
   
           // ^move[from-file-name;to-file-name]
           add_native_method("move", Method::CT_STATIC, _move, 2, 2);
   
         // ^find[file-name]          // ^find[file-name]
         // ^find[file-name]{when-not-found}          // ^find[file-name]{when-not-found}
         add_native_method("find", Method::CT_STATIC, _find, 1, 2);          add_native_method("find", Method::CT_STATIC, _find, 1, 2);

Removed from v.1.44  
changed lines
  Added in v.1.45


E-mail: