Changeset 203
- Timestamp:
- Jun 12, 2006, 5:33:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_symbol.cxx
r144 r203 864 864 void Symbol::filter_path_value (const cmt_string& name, cmt_string& text) 865 865 { 866 866 867 CmtSystem::cmt_string_vector paths; 868 CmtSystem::cmt_string_vector normalyzed_paths; 867 869 868 870 CmtSystem::split (text, CmtSystem::path_separator (), paths); … … 873 875 874 876 if (!CmtSystem::test_directory (t)) 875 { 876 if (Cmt::get_warnings ()) 877 { 878 cout << "#CMT> Warning: Wrong path item " << t << " in " << name << endl; 879 } 880 } 881 } 882 883 Cmt::vector_to_string (paths, CmtSystem::path_separator (), text); 877 { 878 if (Cmt::get_warnings ()) 879 { 880 cout << "#CMT> Warning: Wrong path item " << t << " in " << name << endl; 881 } 882 883 } 884 885 bool exist = false; 886 for (int i = 0; i < j; ++i) 887 { 888 cmt_string& u = paths[i]; 889 if (u == t) 890 exist = true; 891 } 892 if (not exist) 893 { 894 cmt_string& s = normalyzed_paths.add (); 895 s = t; 896 } 897 } 898 899 Cmt::vector_to_string (normalyzed_paths, CmtSystem::path_separator (), text); 884 900 885 901 for (;;)
Note: See TracChangeset
for help on using the changeset viewer.