Changeset 280
- Timestamp:
- Oct 12, 2006, 7:40:03 PM (18 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r273 r280 1 2006-12-17 Vincent Garonne <garonne@lal.in2p3.fr> 315 2 3 * source/cmt_std.h: add __APPLE__ for removing compilation warnings 1 4 2 5 2006-11-17 Vincent Garonne <garonne@lal.in2p3.fr> 314 -
CMT/HEAD/source/cmt_parser.cxx
r272 r280 7673 7673 Me.m_recursive = true; 7674 7674 //Me.m_debug = false; 7675 use = Use::add (Me.m_default_path, "CMT", Me.m_cmt_version, "", "", 0);7675 use = Use::add (Me.m_default_path, "CMT", Me.m_cmt_version, "", "", "", 0); 7676 7676 Me.m_recursive = recursive_copy; 7677 7677 Me.m_debug = debug_copy; … … 7712 7712 Me.m_recursive = true; 7713 7713 7714 use = Use::add (path, name, "v0", "", "", 0);7714 use = Use::add (path, name, "v0", "", "", "", 0); 7715 7715 7716 7716 cmt_string f = Me.m_cmt_user_context; -
CMT/HEAD/source/cmt_syntax.cxx
r273 r280 64 64 { 65 65 if (use == &(Use::current ())) 66 { 67 Constituent::action (Application, words); 68 } 69 } 66 { 67 Constituent::action (Application, words); 68 } 69 } 70 70 71 void action (const CmtSystem::cmt_string_vector& words, 71 72 Project* project, -
CMT/HEAD/source/cmt_use.cxx
r272 r280 583 583 void set (const cmt_string& w) 584 584 { 585 if (w == "-auto_imports") 585 if (w.find (0, "-native_version=") != -1) 586 { 587 native_version = w.substr (16); 588 } 589 else if (w == "-auto_imports") 586 590 { 587 591 auto_imports = On; … … 747 751 /// Now do create or retreive the Use object. 748 752 Use* new_use = Use::add (path, package, version, 749 version_alias, path_alias, parent,750 auto_imports);753 version_alias, path_alias, native_version, 754 parent, auto_imports); 751 755 752 756 if (new_use != 0) … … 836 840 837 841 State auto_imports; 838 842 cmt_string native_version; 839 843 cmt_string package; 840 844 cmt_string version; … … 850 854 851 855 // 852 // complete syntax : "use <package> <version> <path> "856 // complete syntax : "use <package> <version> <path> <-native_version=<version>>" 853 857 // minimal syntax : "use <package>" 854 858 // … … 883 887 else 884 888 { 885 it.set (ew);889 it.set (ew); 886 890 } 887 891 } … … 1284 1288 m_package = 0; 1285 1289 m_index = -1; 1290 native_version = ""; 1286 1291 1287 1292 clear (); … … 2306 2311 const cmt_string& version_alias, 2307 2312 const cmt_string& path_alias, 2313 const cmt_string& native_version, 2308 2314 Use* context_use, 2309 2315 State specified_auto_imports) … … 2315 2321 2316 2322 do_need_new = need_new (path, package_name, version, &old_use, context_use); 2323 // cout <<"native_version: "<<native_version<<" "<<version<<endl; 2324 2317 2325 2318 2326 if (Cmt::get_debug ()) … … 2404 2412 * we have created a new Use (which has to be validated) 2405 2413 */ 2406 2407 2414 bool found = use->move_to (); 2408 2415 -
CMT/HEAD/source/cmt_use.h
r272 r280 39 39 const cmt_string& version_alias, 40 40 const cmt_string& path_alias, 41 const cmt_string& native_version, 41 42 Use* context_use, 42 43 State specified_auto_imports = Unspecified); … … 138 139 cmt_string version; /* idem */ 139 140 cmt_string real_path; 141 cmt_string native_version; /* idem */ 140 142 CmtDirStyle style; /* May be cmt or mgr */ 141 143 … … 172 174 const cmt_string& version, 173 175 Use** old_use, 174 Use* context_use);176 Use* context_use); 175 177 176 178 bool get_all_clients (Use* to,
Note: See TracChangeset
for help on using the changeset viewer.