Skip to content

Commit

Permalink
implement emit_getint in IndexedExpr to generate get_integer_keyed in…
Browse files Browse the repository at this point in the history
… uses like: a[1] | i
  • Loading branch information
NotFound committed Sep 15, 2011
1 parent 6df8847 commit ce91c38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion winxedst1.winxed
Original file line number Diff line number Diff line change
Expand Up @@ -5944,12 +5944,17 @@ class IndexExpr : Expr
function emit(e, result)
{
self.emit_prep(e);
string type = self.checkresult();
self.annotate(e);
e.print(INDENT, result, ' = ');
self.emit_aux(e);
e.say('');
}
function emit_getint(e)
{
string result = self.tempreg(REGint);
self.emit(e, result);
return result;
}
function emit_assign(e, string typeright, string rreg)
{
self.emit_prep(e);
Expand Down

0 comments on commit ce91c38

Please sign in to comment.