Changeset 337 for cpp/frams/vm
- Timestamp:
- 03/12/15 04:21:46 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/vm/framscript.y
r333 r337 145 145 { 146 146 #ifdef FRAMSCRIPT_GOTO 147 trctx.out->printf("jump :%s\n",str($2)); FMprintf("FramScriptCompiler","translate",FMLV_WARN,"goto is not recommended (%s line %d)",(const char*)trctx.srcname,trctx.line); trctx.emitLine();147 trctx.out->printf("jump :%s\n",str($2)); FMprintf("FramScriptCompiler","translate",FMLV_WARN,"goto is not recommended"); trctx.emitLine(); 148 148 #else 149 149 trctx.err->printf("goto is not supported\n");return 1; … … 1409 1409 } 1410 1410 1411 class FramscriptCmpMessageHandler: public ExtValue::CmpMessageHandler1412 {1413 public:1414 void cmpMessage(SString& msg)1415 {1416 FMprintf("FramScriptCompiler","translate",FMLV_WARN,"%s (%s line %d)",(const char*)msg,(const char*)trctx.srcname,trctx.line);1417 //trctx.err->printf("%s",(const char*)msg);1418 }1419 };1420 1421 static FramscriptCmpMessageHandler framscript_cmp_messages;1422 1423 1411 bool handleCompare(YYSTYPE& result,const YYSTYPE& arg1,const YYSTYPE& arg2,ExtValue::CmpOperator op,const char* opname) 1424 1412 { … … 1432 1420 context.v1=&arg1; 1433 1421 context.v2=&arg2; 1434 context.handler=&framscript_cmp_messages;1435 1422 int ret=ExtValue::interpretCompare(op,cmp,&context); 1436 1423 if (ret<0) … … 1528 1515 { 1529 1516 if (t.assign && (!t.parens)) 1530 FMprintf("FramScriptCompiler","translate",FMLV_WARN,"Assignment used as truth value, use double parens if you really mean it (%s line %d)",(const char*)trctx.srcname,trctx.line);1517 FMprintf("FramScriptCompiler","translate",FMLV_WARN,"Assignment used as truth value, use ((double parens)) if you really mean it"); 1531 1518 } 1532 1519
Note: See TracChangeset
for help on using the changeset viewer.