Changeset 664 for CMT/v1r25-branch/source/cmt_syntax.cxx
- Timestamp:
- Jan 13, 2014, 4:09:37 PM (10 years ago)
- Location:
- CMT/v1r25-branch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/v1r25-branch
-
CMT/v1r25-branch/source/cmt_syntax.cxx
r607 r664 3 3 // arnault@lal.in2p3.fr 4 4 // Modified by garonne@lal.in2p3.fr 5 // Modified by Grigory Rybkin 5 6 // See the complete license in cmt_license.txt "http://www.cecill.info". 6 7 //----------------------------------------------------------- … … 212 213 int line_number) 213 214 { 214 215 /* 215 216 cmt_string cmtpath; 216 217 cmt_string offset; … … 219 220 220 221 Project* p = Project::find_by_cmtpath (cmtpath); 222 */ 223 Project* p = const_cast<Project*>(use->get_project ()); 224 // const Project* p = use->get_project (); 221 225 222 226 for (int i = 1; i < words.size (); i++) … … 287 291 { 288 292 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"); 291 300 } 292 301 } … … 1060 1069 int line_number) 1061 1070 { 1071 /* 1062 1072 cmt_string cmtpath; 1063 1073 cmt_string offset; … … 1066 1076 1067 1077 Project* p = Project::find_by_cmtpath (cmtpath); 1078 */ 1079 Project* p = const_cast<Project*>(use->get_project ()); 1080 // const Project* p = use->get_project (); 1068 1081 1069 1082 for (int i = 1; i < words.size (); i++) … … 1126 1139 { 1127 1140 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"); 1130 1148 } 1131 1149 } … … 1164 1182 int line_number) 1165 1183 { 1184 /* 1166 1185 cmt_string cmtpath; 1167 1186 cmt_string offset; … … 1170 1189 1171 1190 Project* p = Project::find_by_cmtpath (cmtpath); 1191 */ 1192 Project* p = const_cast<Project*>(use->get_project ()); 1193 // const Project* p = use->get_project (); 1172 1194 1173 1195 for (int i = 1; i < words.size (); i++) … … 1231 1253 { 1232 1254 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"); 1235 1262 } 1236 1263 } … … 1403 1430 // 1404 1431 1405 Project* p = use->get_project ();1432 const Project* p = use->get_project (); 1406 1433 if (p != 0) 1407 1434 { … … 2054 2081 2055 2082 keyword->action (words, project, file_name, line_number); 2083 2084 if (CmtError::get_last_error_code () == CmtError::syntax_error) 2085 CmtError::print (); 2056 2086 }
Note: See TracChangeset
for help on using the changeset viewer.