comparison src/ov-fcn-handle.cc @ 10250:2d47356a7a1a

use gnulib getcwd module
author John W. Eaton <jwe@octave.org>
date Wed, 03 Feb 2010 03:07:06 -0500
parents cd96d29c5efa
children a4fb4675accb
comparison
equal deleted inserted replaced
10249:14eba566f9f0 10250:2d47356a7a1a
221 names(1) = nm + ".mex"; 221 names(1) = nm + ".mex";
222 names(2) = nm + ".m"; 222 names(2) = nm + ".m";
223 223
224 dir_path p (load_path::system_path ()); 224 dir_path p (load_path::system_path ());
225 225
226 str = octave_env::make_absolute 226 str = octave_env::make_absolute (p.find_first_of (names));
227 (p.find_first_of (names), octave_env::getcwd ());
228 227
229 size_t xpos = str.find_last_of (file_ops::dir_sep_chars ()); 228 size_t xpos = str.find_last_of (file_ops::dir_sep_chars ());
230 229
231 std::string dir_name = str.substr (0, xpos); 230 std::string dir_name = str.substr (0, xpos);
232 231