Changeset 329


Ignore:
Timestamp:
Nov 20, 2006, 2:32:46 PM (19 years ago)
Author:
garonne
Message:

Extent cmt/project.cmt file syntax/grammar(it works !)

Location:
CMT/v1r20b1/source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMT/v1r20b1/source/cmt_commands.cxx

    r282 r329  
    488488        }
    489489
    490       //cerr << "argc=" << argc << " reduced_arg=[" << reduced_arg << "] arg=[" << arg << "]" << endl;
     490      // cerr << "argc=" << argc << " reduced_arg=[" << reduced_arg << "] arg=[" << arg << "]" << endl;
    491491
    492492      if (parsers.has (reduced_arg))
     
    17561756    Here we are going to change the complete tag set
    17571757  */
    1758              
    17591758  if (arg != "")
    17601759    {
     
    17811780        {
    17821781          const cmt_string& a = words[i];
    1783                      
     1782      //if (!cmt.m_quiet) cout  << "parse_argument(tag_add)> current_tag=" << a << endl;                     
    17841783          cmt_string s = ",";
    17851784          s += a;
     
    17901789              cmt.m_current_tag = a;
    17911790                         
    1792               if (CmtSystem::testenv ("TAGDEBUG")) cerr
    1793                 << "parse_argument(tag_add)> current_tag=" << cmt.m_current_tag << endl;
     1791              if (CmtSystem::testenv ("TAGDEBUG"))
     1792              cerr << "parse_argument(tag_add)> current_tag=" << cmt.m_current_tag << endl;
    17941793            }
    17951794                     
     
    18051804                         
    18061805              tag = Tag::add (a, PriorityArgument, "arguments", 0);
    1807                          
    18081806              tag->mark ();
    1809                          
    18101807              cmt.m_extra_tags += a;
    18111808              cmt.m_extra_tags += ",";
    18121809            }
    18131810        }
     1811        // To be sure that a tag
     1812        Cmt::guess_current_project ();
    18141813    }
    18151814}
     
    18191818  Tag* tag;
    18201819  CmtSystem::cmt_string_vector words;
    1821              
    1822   //if (!cmt.m_quiet) cerr << "-tag_add=" << arg << endl;
     1820 
     1821  if (!cmt.m_quiet) cout << "-tag_add=" << arg << endl;
    18231822
    18241823  CmtSystem::split (arg, " \t,", words);
  • CMT/v1r20b1/source/cmt_parser.cxx

    r325 r329  
    49574957{
    49584958  ArgParser ap (Me);
    4959 
     4959 
    49604960  ap.argc = argc;
    49614961  ap.argv = argv;
     
    49664966      exit (0);
    49674967    }
     4968
    49684969
    49694970  clear ();
     
    49884989      Me.m_current_access = DeveloperMode;
    49894990    }
    4990 
     4991 
    49914992  parse_arguments (ap);
    4992 
     4993 
    49934994  if (Me.m_debug)
    49944995    {
  • CMT/v1r20b1/source/cmt_syntax.cxx

    r328 r329  
    263263            if (project != 0)
    264264            {
    265                project->set_strategy (strategy, value, project->get_use()->get_package_name ());
    266                // project->set_strategy (strategy, value, "");
     265               // project->set_strategy (strategy, value, project->get_use()->get_package_name ());
     266               project->set_strategy (strategy, value, "");
    267267            } 
    268268          }
Note: See TracChangeset for help on using the changeset viewer.