Changeset 382 for cpp/frams/vm
- Timestamp:
- 05/22/15 04:15:14 (10 years ago)
- Location:
- cpp/frams/vm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/vm/framscript.l
r348 r382 76 76 if (end) 77 77 { 78 trctx.tmp+= SString(yytext,end-yytext);79 framscriptlval.setString(quoteMultiline( trctx.tmp));78 trctx.tmp+=string(yytext,end-yytext); 79 framscriptlval.setString(quoteMultiline(SString(trctx.tmp.c_str()))); 80 80 yyless((end-yytext)+3); 81 81 BEGIN 0; … … 83 83 } 84 84 else 85 trctx.tmp+= SString(yytext,yyleng);85 trctx.tmp+=string(yytext,yyleng); 86 86 } 87 87 <multiline>\n {trctx.line++; trctx.linechanged=true; trctx.tmp+="\n";} -
cpp/frams/vm/framscript.y
r375 r382 526 526 trstack.adjust(+1); 527 527 } 528 trctx.tmp= 0;528 trctx.tmp=""; 529 529 trctx.divertOut(); 530 530 //trctx.out->printf("# expr#3\n"); … … 535 535 if (!$7.constant) { trctx.out->printf("inc m0\n"); trstack.adjust(+1); } 536 536 trctx.restoreOut(); 537 $$.setString(trctx.tmp );537 $$.setString(trctx.tmp.c_str()); 538 538 //trctx.out->printf("# pseudoblok_statement pos=%d\n",trstack.currentPos()); 539 539 }
Note: See TracChangeset
for help on using the changeset viewer.