diff options
author | Damien George <damien.p.george@gmail.com> | 2016-08-15 11:02:59 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-08-15 11:02:59 +1000 |
commit | 675d1c9c600224820f49f912e4ff7d6cf2f97711 (patch) | |
tree | 6ee88932cfac9ba07782ad19ce173c7d829d5c42 /unix | |
parent | 41fceae559ff2272a88441dbf531232f173ccbd6 (diff) | |
download | micropython-675d1c9c600224820f49f912e4ff7d6cf2f97711.tar.gz micropython-675d1c9c600224820f49f912e4ff7d6cf2f97711.zip |
ports: Remove typedef of machine_ptr_t, it's no longer needed.
This type was used only for the typedef of mp_obj_t, which is now defined
by the object representation. So we can now remove this unused typedef,
to simplify the mpconfigport.h file.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/mpconfigport.h | 3 | ||||
-rw-r--r-- | unix/mpconfigport_minimal.h | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index 86b6001d5b..9845e1ce5f 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -231,9 +231,6 @@ typedef long long mp_off_t; typedef long mp_off_t; #endif -typedef void *machine_ptr_t; // must be of pointer size -typedef const void *machine_const_ptr_t; // must be of pointer size - void mp_unix_alloc_exec(mp_uint_t min_size, void** ptr, mp_uint_t *size); void mp_unix_free_exec(void *ptr, mp_uint_t size); void mp_unix_mark_exec(void); diff --git a/unix/mpconfigport_minimal.h b/unix/mpconfigport_minimal.h index 054e82c243..15a5f7d852 100644 --- a/unix/mpconfigport_minimal.h +++ b/unix/mpconfigport_minimal.h @@ -135,9 +135,6 @@ typedef long long mp_off_t; typedef long mp_off_t; #endif -typedef void *machine_ptr_t; // must be of pointer size -typedef const void *machine_const_ptr_t; // must be of pointer size - // We need to provide a declaration/definition of alloca() #ifdef __FreeBSD__ #include <stdlib.h> |