Mercurial > hg > octave-nkf
comparison src/utils.cc @ 6379:41c1deed5613
[project @ 2007-03-02 18:43:20 by jwe]
author | jwe |
---|---|
date | Fri, 02 Mar 2007 18:43:21 +0000 |
parents | ea65de49e18e |
children | ce819776ee76 |
comparison
equal
deleted
inserted
replaced
6378:625b31d2c67d | 6379:41c1deed5613 |
---|---|
257 { | 257 { |
258 dir_path p (path); | 258 dir_path p (path); |
259 | 259 |
260 string_vector sv = p.find_all_first_of (names); | 260 string_vector sv = p.find_all_first_of (names); |
261 | 261 |
262 int len = sv.length (); | 262 octave_idx_type len = sv.length (); |
263 | 263 |
264 for (int i = 0; i < len; i++) | 264 for (octave_idx_type i = 0; i < len; i++) |
265 sv[i] = octave_env::make_absolute (sv[i], octave_env::getcwd ()); | 265 sv[i] = octave_env::make_absolute (sv[i], octave_env::getcwd ()); |
266 | 266 |
267 return sv; | 267 return sv; |
268 } | 268 } |
269 | 269 |
270 static string_vector | 270 static string_vector |
271 make_absolute (const string_vector& sv) | 271 make_absolute (const string_vector& sv) |
272 { | 272 { |
273 int len = sv.length (); | 273 octave_idx_type len = sv.length (); |
274 | 274 |
275 for (int i = 0; i < len; i++) | 275 string_vector retval (len); |
276 sv[i] = octave_env::make_absolute (sv[i], octave_env::getcwd ()); | 276 |
277 | 277 for (octave_idx_type i = 0; i < len; i++) |
278 return sv; | 278 retval[i] = octave_env::make_absolute (sv[i], octave_env::getcwd ()); |
279 | |
280 return retval; | |
279 } | 281 } |
280 | 282 |
281 DEFUN (file_in_loadpath, args, , | 283 DEFUN (file_in_loadpath, args, , |
282 "-*- texinfo -*-\n\ | 284 "-*- texinfo -*-\n\ |
283 @deftypefn {Built-in Function} {} file_in_loadpath (@var{file})\n\ | 285 @deftypefn {Built-in Function} {} file_in_loadpath (@var{file})\n\ |