Changeset 535 for CMT/HEAD/source/cmt_syntax.cxx
- Timestamp:
- Mar 26, 2010, 11:56:50 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_syntax.cxx
r526 r535 1656 1656 cmt_string text; 1657 1657 1658 CmtError::clear (); 1658 if (CmtError::get_last_error_code () == CmtError::syntax_error) 1659 CmtError::clear (); 1659 1660 1660 1661 if (!CmtSystem::test_file (actual_file_name)) … … 1888 1889 Use* use) 1889 1890 { 1890 CmtError::clear (); 1891 if (CmtError::get_last_error_code () == CmtError::syntax_error) 1892 CmtError::clear (); 1891 1893 1892 1894 if (words.size () == 0) return; … … 1921 1923 } 1922 1924 1923 if (CmtError::has_pending_error ()) 1925 if (CmtError::get_last_error_code () == CmtError::syntax_error) 1926 // if (CmtError::has_pending_error ()) 1924 1927 { 1928 CmtError::print (); 1929 1925 1930 char num[32]; sprintf (num, "%d", line_number); 1926 1931 CmtMessage::error ("bad syntax in requirements of " + use->get_package_name () … … 1955 1960 Project* project) 1956 1961 { 1957 CmtError::clear (); 1962 if (CmtError::get_last_error_code () == CmtError::syntax_error) 1963 CmtError::clear (); 1958 1964 1959 1965 if (words.size () == 0) return; … … 1973 1979 } 1974 1980 1975 if (CmtError::has_pending_error ()) 1981 if (CmtError::get_last_error_code () == CmtError::syntax_error) 1982 // if (CmtError::has_pending_error ()) 1976 1983 { 1984 CmtError::print (); 1985 1977 1986 char num[32]; sprintf (num, "%d", line_number); 1978 1987 CmtMessage::error ("bad syntax in project file of " + project->get_name ()
Note: See TracChangeset
for help on using the changeset viewer.