diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-05 23:02:23 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-05 23:02:23 +0100 |
| commit | 27e735fd1870e24595eadb02164b164a3bb81b98 (patch) | |
| tree | 055a15886ec0e55f19d32533a827fa5d1586b6a6 /unix/mpconfigport.h | |
| parent | 17520224fad7a0c4a742f9b8a46e016c2ba3cc46 (diff) | |
py: Replace stream_p with *stream_p in mp_obj_type_t.
This is to reduce ROM usage. stream_p is used in file and socket types
only (at the moment), so seems a good idea to make the protocol
functions a pointer instead of the actual structure.
It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/.
Diffstat (limited to 'unix/mpconfigport.h')
| -rw-r--r-- | unix/mpconfigport.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index 3798f88b5..e2f2a69e1 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -31,7 +31,6 @@ typedef unsigned int machine_uint_t; // must be pointer size typedef void *machine_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size -struct _mp_obj_fun_native_t; extern const struct _mp_obj_fun_native_t mp_builtin_open_obj; #define MICROPY_EXTRA_BUILTINS \ { MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj }, |
