Changes in src/Concurrency/Corun.cpp [ca9d65e:37273c8]
- File:
-
- 1 edited
-
src/Concurrency/Corun.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Corun.cpp
rca9d65e r37273c8 9 9 // Author : Colby Parsons 10 10 // Created On : Monday October 9 15:16:42 2023 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Thu Dec 14 17:32:17202313 // Update Count : 111 // Last Modified By : Colby Parsons 12 // Last Modified On : Monday October 9 15:16:42 2023 13 // Update Count : 0 14 14 // 15 15 … … 57 57 Stmt * postvisit( const CoforStmt * stmt ) { 58 58 if ( !runnerBlockDecl || !coforRunnerDecl ) 59 SemanticError( stmt->location, "To use cofor statements add #include <cofor.hfa> " );59 SemanticError( stmt->location, "To use cofor statements add #include <cofor.hfa>\n" ); 60 60 61 61 if ( stmt->inits.size() != 1 ) 62 SemanticError( stmt->location, "Cofor statements must have a single initializer in the loop control " );62 SemanticError( stmt->location, "Cofor statements must have a single initializer in the loop control\n" ); 63 63 64 64 if ( !stmt->body ) … … 77 77 const DeclStmt * declStmtPtr = dynamic_cast<const DeclStmt *>(stmt->inits.at(0).get()); 78 78 if ( ! declStmtPtr ) 79 SemanticError( stmt->location, "Cofor statement initializer is somehow not a decl statement? " );79 SemanticError( stmt->location, "Cofor statement initializer is somehow not a decl statement?\n" ); 80 80 81 81 const Decl * declPtr = dynamic_cast<const Decl *>(declStmtPtr->decl.get()); 82 82 if ( ! declPtr ) 83 SemanticError( stmt->location, "Cofor statement initializer is somehow not a decl? " );83 SemanticError( stmt->location, "Cofor statement initializer is somehow not a decl?\n" ); 84 84 85 85 Type * initType = new TypeofType( new NameExpr( loc, declPtr->name ) ); … … 246 246 Stmt * postvisit( const CorunStmt * stmt ) { 247 247 if ( !runnerBlockDecl || !coforRunnerDecl ) 248 SemanticError( stmt->location, "To use corun statements add #include <cofor.hfa> " );248 SemanticError( stmt->location, "To use corun statements add #include <cofor.hfa>\n" ); 249 249 250 250 if ( !stmt->stmt )
Note:
See TracChangeset
for help on using the changeset viewer.