Changeset 280


Ignore:
Timestamp:
Oct 12, 2006, 7:40:03 PM (18 years ago)
Author:
garonne
Message:

enable and propagate -native_version syntax. STILL NOT FINISHED -- Backup commit

Location:
CMT/HEAD
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r273 r280  
     12006-12-17 Vincent Garonne <garonne@lal.in2p3.fr> 315
     2
     3    * source/cmt_std.h: add __APPLE__ for removing compilation warnings   
    14
    252006-11-17 Vincent Garonne <garonne@lal.in2p3.fr> 314
  • CMT/HEAD/source/cmt_parser.cxx

    r272 r280  
    76737673  Me.m_recursive = true;
    76747674  //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);
    76767676  Me.m_recursive = recursive_copy;
    76777677  Me.m_debug = debug_copy;
     
    77127712  Me.m_recursive = true;
    77137713
    7714   use = Use::add (path, name, "v0", "", "", 0);
     7714  use = Use::add (path, name, "v0", "", "", "", 0);
    77157715
    77167716  cmt_string f = Me.m_cmt_user_context;
  • CMT/HEAD/source/cmt_syntax.cxx

    r273 r280  
    6464  {
    6565    if (use == &(Use::current ()))
    66       {
    67         Constituent::action (Application, words);
    68       }
    69   }
     66    {
     67            Constituent::action (Application, words);
     68     }
     69  }
     70 
    7071  void action (const CmtSystem::cmt_string_vector& words,
    7172                  Project* project,
  • CMT/HEAD/source/cmt_use.cxx

    r272 r280  
    583583  void set (const cmt_string& w)
    584584      {
    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")
    586590          {
    587591            auto_imports = On;
     
    747751        /// Now do create or retreive the Use object.
    748752        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);
    751755
    752756        if (new_use != 0)
     
    836840 
    837841  State auto_imports;
    838 
     842  cmt_string native_version;
    839843  cmt_string package;
    840844  cmt_string version;
     
    850854
    851855  //
    852   // complete syntax : "use <package> <version> <path>"
     856  // complete syntax : "use <package> <version> <path> <-native_version=<version>>" 
    853857  // minimal syntax  : "use <package>"
    854858  //
     
    883887      else
    884888        {
    885           it.set (ew);
     889             it.set (ew);
    886890        }
    887891    }
     
    12841288  m_package = 0;
    12851289  m_index = -1;
     1290  native_version = "";
    12861291
    12871292  clear ();
     
    23062311               const cmt_string& version_alias,
    23072312               const cmt_string& path_alias,
     2313               const cmt_string& native_version,
    23082314               Use* context_use,
    23092315               State specified_auto_imports)
     
    23152321
    23162322  do_need_new = need_new (path, package_name, version, &old_use, context_use);
     2323  // cout <<"native_version: "<<native_version<<" "<<version<<endl;
     2324   
    23172325
    23182326  if (Cmt::get_debug ())
     
    24042412   *         we have created a new Use (which has to be validated)
    24052413   */
    2406 
    24072414  bool found = use->move_to ();
    24082415
  • CMT/HEAD/source/cmt_use.h

    r272 r280  
    3939                   const cmt_string& version_alias,
    4040                   const cmt_string& path_alias,
     41                   const cmt_string& native_version,
    4142                   Use* context_use,
    4243                   State specified_auto_imports = Unspecified);
     
    138139  cmt_string version;            /* idem                            */
    139140  cmt_string real_path;
     141  cmt_string native_version;     /* idem                            */
    140142  CmtDirStyle style;             /* May be cmt or mgr               */
    141143
     
    172174                        const cmt_string& version,
    173175                        Use** old_use,
    174                         Use* context_use);
     176                                    Use* context_use);
    175177
    176178  bool get_all_clients (Use* to,
Note: See TracChangeset for help on using the changeset viewer.