Ignore:
Timestamp:
Jan 13, 2014, 4:09:37 PM (10 years ago)
Author:
rybkin
Message:

merge -r 646:663 HEAD

Location:
CMT/v1r25-branch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMT/v1r25-branch

  • CMT/v1r25-branch/source/cmt_syntax.cxx

    r607 r664  
    33// arnault@lal.in2p3.fr
    44// Modified by garonne@lal.in2p3.fr
     5// Modified by Grigory Rybkin
    56// See the complete license in cmt_license.txt "http://www.cecill.info".
    67//-----------------------------------------------------------
     
    212213               int line_number)
    213214  {
    214        
     215    /*       
    215216    cmt_string cmtpath;
    216217    cmt_string offset;
     
    219220
    220221    Project* p = Project::find_by_cmtpath (cmtpath);
     222    */
     223    Project* p = const_cast<Project*>(use->get_project ());
     224    //    const Project* p = use->get_project ();
    221225
    222226    for (int i = 1; i < words.size (); i++)
     
    287291          {
    288292            in_error = true;
    289 
    290             CmtError::set (CmtError::syntax_error, "ParseRequirements> bad strategy keyword");
     293            char num[32]; sprintf (num, "%d", line_number);
     294            CmtError::set (CmtError::syntax_error,
     295                           project->get_name ()
     296                           + " project file: " + file_name
     297                           + ": line: " + num
     298                           + ": " + value + ": Bad strategy value");
     299            //CmtError::set (CmtError::syntax_error, "ParseRequirements> bad strategy keyword");
    291300          }
    292301      }
     
    10601069               int line_number)
    10611070  {
     1071    /*
    10621072    cmt_string cmtpath;
    10631073    cmt_string offset;
     
    10661076
    10671077    Project* p = Project::find_by_cmtpath (cmtpath);
     1078    */
     1079    Project* p = const_cast<Project*>(use->get_project ());
     1080    //    const Project* p = use->get_project ();
    10681081
    10691082    for (int i = 1; i < words.size (); i++)
     
    11261139          {
    11271140            in_error = true;
    1128 
    1129             CmtError::set (CmtError::syntax_error, "ParseRequirements> bad strategy keyword");
     1141            char num[32]; sprintf (num, "%d", line_number);
     1142            CmtError::set (CmtError::syntax_error,
     1143                           project->get_name ()
     1144                           + " project file: " + file_name
     1145                           + ": line: " + num
     1146                           + ": " + value + ": Bad strategy value");
     1147            //CmtError::set (CmtError::syntax_error, "ParseRequirements> bad strategy keyword");
    11301148          }
    11311149      }
     
    11641182               int line_number)
    11651183  {
     1184    /*
    11661185    cmt_string cmtpath;
    11671186    cmt_string offset;
     
    11701189
    11711190    Project* p = Project::find_by_cmtpath (cmtpath);
     1191    */
     1192    Project* p = const_cast<Project*>(use->get_project ());
     1193    //    const Project* p = use->get_project ();
    11721194
    11731195    for (int i = 1; i < words.size (); i++)
     
    12311253          {
    12321254            in_error = true;
    1233 
    1234             CmtError::set (CmtError::syntax_error, "ParseRequirements> bad strategy keyword");
     1255            char num[32]; sprintf (num, "%d", line_number);
     1256            CmtError::set (CmtError::syntax_error,
     1257                           project->get_name ()
     1258                           + " project file: " + file_name
     1259                           + ": line: " + num
     1260                           + ": " + value + ": Bad strategy value");
     1261            //CmtError::set (CmtError::syntax_error, "ParseRequirements> bad strategy keyword");
    12351262          }
    12361263      }
     
    14031430      //
    14041431     
    1405       Project* p = use->get_project ();
     1432      const Project* p = use->get_project ();
    14061433      if (p != 0)
    14071434        {     
     
    20542081
    20552082  keyword->action (words, project, file_name, line_number);
     2083
     2084  if (CmtError::get_last_error_code () == CmtError::syntax_error)
     2085    CmtError::print ();
    20562086}
Note: See TracChangeset for help on using the changeset viewer.