Author: pmichaud
Date: Sun Oct  9 17:32:41 2005
New Revision: 9424

Modified:
   trunk/compilers/pge/PGE/Exp.pir
Log:
Consolidated yields to return nothing, per Leo's suggestion.


Modified: trunk/compilers/pge/PGE/Exp.pir
==============================================================================
--- trunk/compilers/pge/PGE/Exp.pir     (original)
+++ trunk/compilers/pge/PGE/Exp.pir     Sun Oct  9 17:32:41 2005
@@ -497,7 +497,7 @@ register.
     emit(code, "    from = pos")
     self.emitsub(code, label, "NOCUT")
     emit(code, "  fail_forever:")
-    emit(code, "    .yield(-2)")
+    emit(code, "    .yield()")
     emit(code, "    goto fail_forever")
 
     exp1 = self["exp1"]
@@ -518,7 +518,7 @@ register.
     emit(code, "\n  %s:", label)
     emit(code, "    $P0 = getattribute mob, \"PGE::Match\\x0$:pos\"")
     emit(code, "    $P0 = pos")
-    emit(code, "    .yield(pos)")
+    emit(code, "    .yield()")
     emit(code, "    $P0 = -1")
     emit(code, "  fail:")
     emit(code, "    ret")

Reply via email to