py: Improve native emitter; now supports more opcodes.

This commit is contained in:
Damien George
2014-05-07 18:30:52 +01:00
parent 36db6bcf54
commit a32c1e41cc
8 changed files with 89 additions and 30 deletions

View File

@@ -161,7 +161,8 @@ mp_obj_t mp_obj_new_int_from_ll(long long val) {
return o;
}
mp_obj_t mp_obj_new_int_from_long_str(const char *s) {
mp_obj_t mp_obj_new_int_from_qstr(qstr qst) {
const char *s = qstr_str(qst);
long long v;
char *end;
// TODO: this doesn't handle Python hacked 0o octal syntax