comparison src/load-path.cc @ 8007:a2ab20ba78f7

make file_ops a proper singleton class
author John W. Eaton <jwe@octave.org>
date Mon, 04 Aug 2008 23:44:50 -0400
parents dd5cc5016487
children 4d13a7a2f6ab
comparison
equal deleted inserted replaced
8006:b0e7bbe7cd47 8007:a2ab20ba78f7
1005 std::string 1005 std::string
1006 load_path::do_find_file (const std::string& file) const 1006 load_path::do_find_file (const std::string& file) const
1007 { 1007 {
1008 std::string retval; 1008 std::string retval;
1009 1009
1010 if (file.find_first_of (file_ops::dir_sep_chars) != NPOS) 1010 if (file.find_first_of (file_ops::dir_sep_chars ()) != NPOS)
1011 { 1011 {
1012 if (octave_env::absolute_pathname (file) 1012 if (octave_env::absolute_pathname (file)
1013 || octave_env::rooted_relative_pathname (file)) 1013 || octave_env::rooted_relative_pathname (file))
1014 { 1014 {
1015 file_stat fs (file); 1015 file_stat fs (file);