diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-09 15:26:46 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-09 15:26:46 +0100 |
| commit | 2bf7c092225645d8c5b15e536afdce39e3593e42 (patch) | |
| tree | e257514a3008411367ea5e62eaea4b101ccac257 /py/emit.h | |
| parent | 11d8cd54c992eee55f27d3779738626bdc095c03 (diff) | |
py: Properly implement deletion of locals and derefs, and detect errors.
Needed to reinstate 2 delete opcodes, to specifically check that a local
is not deleted twice.
Diffstat (limited to 'py/emit.h')
| -rw-r--r-- | py/emit.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,9 +43,9 @@ typedef struct _emit_method_table_t { void (*load_const_id)(emit_t *emit, qstr qstr); void (*load_const_str)(emit_t *emit, qstr qstr, bool bytes); void (*load_const_verbatim_str)(emit_t *emit, const char *str); // only needed for emitcpy - void (*load_fast)(emit_t *emit, qstr qstr, int local_num); + void (*load_fast)(emit_t *emit, qstr qstr, uint id_flags, int local_num); void (*load_deref)(emit_t *emit, qstr qstr, int local_num); - void (*load_closure)(emit_t *emit, qstr qstr, int local_num); + void (*load_closure)(emit_t *emit, qstr qstr, int local_num); // only needed for emitcpy void (*load_name)(emit_t *emit, qstr qstr); void (*load_global)(emit_t *emit, qstr qstr); void (*load_attr)(emit_t *emit, qstr qstr); |
