Changeset 526 for CMT/HEAD/source


Ignore:
Timestamp:
Nov 13, 2009, 11:56:56 AM (15 years ago)
Author:
rybkin
Message:

See C.L. 413

Location:
CMT/HEAD/source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_project.cxx

    r525 r526  
    18001800
    18011801//----------------------------------------------------------
     1802const Use& Project::get_container () const
     1803{
     1804  return (m_container);
     1805}
     1806
     1807//----------------------------------------------------------
    18021808const cmt_string& Project::get_cmtpath () const
    18031809{
  • CMT/HEAD/source/cmt_project.h

    r525 r526  
    140140  const cmt_string& get_container_version () const;
    141141  const cmt_string& get_container_path () const;
    142   //  const Use& get_container () const;
     142  const Use& get_container () const;
    143143  const cmt_string& get_cmtpath () const;
    144144  const cmt_string& get_cmtpath_real () const;
  • CMT/HEAD/source/cmt_syntax.cxx

    r525 r526  
    14641464             
    14651465            }
     1466          // Apply tag container_package if
     1467          // the current package is the container package of the project
     1468          if (use == &(Use::current ()) &&
     1469              use->get_package_name() == p->get_container ().get_package_name () &&
     1470              use->version == p->get_container ().version)
     1471            {
     1472              cmt_string name ("container_package");
     1473              cmt_string context ("PROJECT " + p->get_name () + " ");
     1474              Tag* tag = Tag::find (name);
     1475              if (tag == 0)
     1476                {
     1477                  tag = Tag::add (name, PriorityUserTag, context, use);
     1478                }
     1479              tag->mark ();
     1480            }
    14661481        }                 
    14671482      use->close_scope_sections ();
Note: See TracChangeset for help on using the changeset viewer.