Implement basic class/object functionality in runtime.
diff --git a/py/emitcpy.c b/py/emitcpy.c
index 203fce7..7c9615c 100644
--- a/py/emitcpy.c
+++ b/py/emitcpy.c
@@ -352,13 +352,6 @@
}
}
-static void emit_cpy_store_locals(emit_t *emit) {
- emit_pre(emit, -1, 1);
- if (emit->pass == PASS_3) {
- printf("STORE_LOCALS\n");
- }
-}
-
static void emit_cpy_store_subscr(emit_t *emit) {
emit_pre(emit, -3, 1);
if (emit->pass == PASS_3) {
@@ -366,6 +359,13 @@
}
}
+static void emit_cpy_store_locals(emit_t *emit) {
+ emit_pre(emit, -1, 1);
+ if (emit->pass == PASS_3) {
+ printf("STORE_LOCALS\n");
+ }
+}
+
static void emit_cpy_delete_fast(emit_t *emit, qstr qstr, int local_num) {
emit_pre(emit, 0, 3);
if (emit->pass == PASS_3) {
@@ -870,8 +870,8 @@
emit_cpy_store_global,
emit_cpy_store_deref,
emit_cpy_store_attr,
- emit_cpy_store_locals,
emit_cpy_store_subscr,
+ emit_cpy_store_locals,
emit_cpy_delete_fast,
emit_cpy_delete_name,
emit_cpy_delete_global,