Mercurial > hg > octave-nkf
comparison src/load-path.cc @ 5911:a65b51ed388c
[project @ 2006-07-28 16:31:00 by jwe]
author | jwe |
---|---|
date | Fri, 28 Jul 2006 16:31:01 +0000 |
parents | b9fd54407c8d |
children | ceaf10a4743c |
comparison
equal
deleted
inserted
replaced
5910:101d966c8d6b | 5911:a65b51ed388c |
---|---|
465 } | 465 } |
466 | 466 |
467 void | 467 void |
468 load_path::do_add (const std::string& dir, bool at_end, bool warn) | 468 load_path::do_add (const std::string& dir, bool at_end, bool warn) |
469 { | 469 { |
470 size_t len = dir.length (); | |
471 | |
472 if (len > 1 && dir.substr (len-2) == "//") | |
473 warning_with_id ("Octave:recursive-path-search", | |
474 "trailing `//' is no longer special in search path elements"); | |
475 | |
470 dir_info_list_iterator i = find_dir_info (dir); | 476 dir_info_list_iterator i = find_dir_info (dir); |
471 | 477 |
472 if (i != dir_info_list.end ()) | 478 if (i != dir_info_list.end ()) |
473 move (i, at_end); | 479 move (i, at_end); |
474 else | 480 else |