comparison liboctave/kpse.cc @ 4663:bf7272f8ba8c

[project @ 2003-11-25 06:05:20 by jwe]
author jwe
date Tue, 25 Nov 2003 06:07:28 +0000
parents 7b957b442818
children c88afb778c41
comparison
equal deleted inserted replaced
4662:55211d6748c4 4663:bf7272f8ba8c
846 /* This is the hard case -- look for NAME in PATH. If ALL is false, 846 /* This is the hard case -- look for NAME in PATH. If ALL is false,
847 return the first file found. Otherwise, search all elements of PATH. */ 847 return the first file found. Otherwise, search all elements of PATH. */
848 848
849 static string_vector 849 static string_vector
850 path_search (const std::string& path, const std::string& name, 850 path_search (const std::string& path, const std::string& name,
851 bool must_exist, bool all) 851 bool /* must_exist */, bool all)
852 { 852 {
853 string_vector ret_list; 853 string_vector ret_list;
854 bool done = false; 854 bool done = false;
855 855
856 for (kpse_path_iterator pi (path); ! done && pi != NPOS; pi++) 856 for (kpse_path_iterator pi (path); ! done && pi != NPOS; pi++)
1023 element of NAMES. If ALL is false, return the first file found. 1023 element of NAMES. If ALL is false, return the first file found.
1024 Otherwise, search all elements of PATH. */ 1024 Otherwise, search all elements of PATH. */
1025 1025
1026 static string_vector 1026 static string_vector
1027 path_find_first_of (const std::string& path, const string_vector& names, 1027 path_find_first_of (const std::string& path, const string_vector& names,
1028 bool must_exist, bool all) 1028 bool /* must_exist */, bool all)
1029 { 1029 {
1030 string_vector ret_list; 1030 string_vector ret_list;
1031 bool done = false; 1031 bool done = false;
1032 1032
1033 for (kpse_path_iterator pi (path); ! done && pi != NPOS; pi++) 1033 for (kpse_path_iterator pi (path); ! done && pi != NPOS; pi++)