diff options
author | Damien George <damien.p.george@gmail.com> | 2015-08-17 22:39:03 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-08-17 22:39:03 +0100 |
commit | 7f70b60f4d05126a838364ee91d288ec8c47d362 (patch) | |
tree | 3c265b43a72ba41a880fbb04848c4a1c1266ce4a /py/runtime0.h | |
parent | 2a6660ba595bd85a637249cb96a5f451a1aa4034 (diff) | |
download | micropython-7f70b60f4d05126a838364ee91d288ec8c47d362.tar.gz micropython-7f70b60f4d05126a838364ee91d288ec8c47d362.zip |
py: Remove unused compile scope flags, and irrelevant flag compute code.
Diffstat (limited to 'py/runtime0.h')
-rw-r--r-- | py/runtime0.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/py/runtime0.h b/py/runtime0.h index 294c17bf62..1d7d64bea6 100644 --- a/py/runtime0.h +++ b/py/runtime0.h @@ -26,20 +26,10 @@ #ifndef __MICROPY_INCLUDED_PY_RUNTIME0_H__ #define __MICROPY_INCLUDED_PY_RUNTIME0_H__ -// taken from python source, Include/code.h // These must fit in 8 bits; see scope.h -#define MP_SCOPE_FLAG_OPTIMISED 0x01 -#define MP_SCOPE_FLAG_NEWLOCALS 0x02 -#define MP_SCOPE_FLAG_VARARGS 0x04 -#define MP_SCOPE_FLAG_VARKEYWORDS 0x08 -#define MP_SCOPE_FLAG_NESTED 0x10 -#define MP_SCOPE_FLAG_GENERATOR 0x20 -/* The MP_SCOPE_FLAG_NOFREE flag is set if there are no free or cell variables. - This information is redundant, but it allows a single flag test - to determine whether there is any extra work to be done when the - call frame is setup. -*/ -#define MP_SCOPE_FLAG_NOFREE 0x40 +#define MP_SCOPE_FLAG_VARARGS (0x01) +#define MP_SCOPE_FLAG_VARKEYWORDS (0x02) +#define MP_SCOPE_FLAG_GENERATOR (0x04) // types for native (viper) function signature #define MP_NATIVE_TYPE_OBJ (0x00) |