Ignore:
Timestamp:
Mar 26, 2010, 11:56:50 AM (15 years ago)
Author:
rybkin
Message:

See C.L. 422

File:
1 edited

Legend:

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

    r526 r535  
    16561656  cmt_string text;
    16571657
    1658   CmtError::clear ();
     1658  if (CmtError::get_last_error_code () == CmtError::syntax_error)
     1659    CmtError::clear ();
    16591660
    16601661  if (!CmtSystem::test_file (actual_file_name))
     
    18881889                                   Use* use)
    18891890{
    1890   CmtError::clear ();
     1891  if (CmtError::get_last_error_code () == CmtError::syntax_error)
     1892        CmtError::clear ();
    18911893
    18921894  if (words.size () == 0) return;
     
    19211923    }
    19221924
    1923   if (CmtError::has_pending_error ())
     1925  if (CmtError::get_last_error_code () == CmtError::syntax_error)
     1926    //  if (CmtError::has_pending_error ())
    19241927    {
     1928      CmtError::print ();
     1929
    19251930      char num[32]; sprintf (num, "%d", line_number);
    19261931      CmtMessage::error ("bad syntax in requirements of " + use->get_package_name ()
     
    19551960                                   Project* project)
    19561961{
    1957   CmtError::clear ();
     1962  if (CmtError::get_last_error_code () == CmtError::syntax_error)
     1963    CmtError::clear ();
    19581964
    19591965  if (words.size () == 0) return;
     
    19731979    }
    19741980
    1975   if (CmtError::has_pending_error ())
     1981  if (CmtError::get_last_error_code () == CmtError::syntax_error)
     1982    //  if (CmtError::has_pending_error ())
    19761983    {
     1984      CmtError::print ();
     1985
    19771986      char num[32]; sprintf (num, "%d", line_number);
    19781987      CmtMessage::error ("bad syntax in project file of " + project->get_name ()
Note: See TracChangeset for help on using the changeset viewer.