summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-08-15 11:02:59 +1000
committerDamien George <damien.p.george@gmail.com>2016-08-15 11:02:59 +1000
commit675d1c9c600224820f49f912e4ff7d6cf2f97711 (patch)
tree6ee88932cfac9ba07782ad19ce173c7d829d5c42
parent41fceae559ff2272a88441dbf531232f173ccbd6 (diff)
downloadmicropython-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.
-rw-r--r--bare-arm/mpconfigport.h2
-rw-r--r--cc3200/mpconfigport.h2
-rw-r--r--esp8266/mpconfigport.h2
-rw-r--r--examples/embedding/mpconfigport_minimal.h3
-rw-r--r--minimal/mpconfigport.h2
-rw-r--r--mpy-cross/mpconfigport.h3
-rw-r--r--pic16bit/mpconfigport.h2
-rw-r--r--qemu-arm/mpconfigport.h2
-rw-r--r--stmhal/mpconfigport.h2
-rw-r--r--teensy/mpconfigport.h2
-rw-r--r--unix/mpconfigport.h3
-rw-r--r--unix/mpconfigport_minimal.h3
-rw-r--r--windows/mpconfigport.h3
13 files changed, 0 insertions, 31 deletions
diff --git a/bare-arm/mpconfigport.h b/bare-arm/mpconfigport.h
index caf37419af..7c448d13c1 100644
--- a/bare-arm/mpconfigport.h
+++ b/bare-arm/mpconfigport.h
@@ -54,8 +54,6 @@
typedef int32_t mp_int_t; // must be pointer size
typedef uint32_t mp_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
typedef long mp_off_t;
// dummy print
diff --git a/cc3200/mpconfigport.h b/cc3200/mpconfigport.h
index 331db8100e..0b16d730d0 100644
--- a/cc3200/mpconfigport.h
+++ b/cc3200/mpconfigport.h
@@ -185,8 +185,6 @@ extern const struct _mp_obj_module_t mp_module_ussl;
typedef int32_t mp_int_t; // must be pointer size
typedef unsigned int mp_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
typedef long mp_off_t;
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h
index 15410f00c5..63b9258a20 100644
--- a/esp8266/mpconfigport.h
+++ b/esp8266/mpconfigport.h
@@ -115,8 +115,6 @@
typedef int32_t mp_int_t; // must be pointer size
typedef uint32_t mp_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
typedef long mp_off_t;
typedef uint32_t sys_prot_t; // for modlwip
// ssize_t, off_t as required by POSIX-signatured functions in stream.h
diff --git a/examples/embedding/mpconfigport_minimal.h b/examples/embedding/mpconfigport_minimal.h
index 9f080ab0e1..90011b3f81 100644
--- a/examples/embedding/mpconfigport_minimal.h
+++ b/examples/embedding/mpconfigport_minimal.h
@@ -127,9 +127,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>
diff --git a/minimal/mpconfigport.h b/minimal/mpconfigport.h
index 165b058794..fc696c77e5 100644
--- a/minimal/mpconfigport.h
+++ b/minimal/mpconfigport.h
@@ -65,8 +65,6 @@
typedef int mp_int_t; // must be pointer size
typedef unsigned mp_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
typedef long mp_off_t;
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
diff --git a/mpy-cross/mpconfigport.h b/mpy-cross/mpconfigport.h
index b3f7d9c3cd..c919e42911 100644
--- a/mpy-cross/mpconfigport.h
+++ b/mpy-cross/mpconfigport.h
@@ -107,9 +107,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
-
#define MP_PLAT_PRINT_STRN(str, len) (void)0
#ifndef MP_NOINLINE
diff --git a/pic16bit/mpconfigport.h b/pic16bit/mpconfigport.h
index 7335ecf348..24cfe43529 100644
--- a/pic16bit/mpconfigport.h
+++ b/pic16bit/mpconfigport.h
@@ -83,8 +83,6 @@
typedef int mp_int_t; // must be pointer size
typedef unsigned int mp_uint_t; // must be pointer size
-typedef void *machine_ptr_t; // must be pointer size
-typedef const void *machine_const_ptr_t; // must be pointer size
typedef int mp_off_t;
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
diff --git a/qemu-arm/mpconfigport.h b/qemu-arm/mpconfigport.h
index ff0e3f99b5..33cc300a4d 100644
--- a/qemu-arm/mpconfigport.h
+++ b/qemu-arm/mpconfigport.h
@@ -36,8 +36,6 @@
typedef int32_t mp_int_t; // must be pointer size
typedef uint32_t mp_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
typedef long mp_off_t;
#include <unistd.h>
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index c2a2cbc1f1..3122a90655 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -202,8 +202,6 @@ extern const struct _mp_obj_module_t mp_module_network;
typedef int mp_int_t; // must be pointer size
typedef unsigned int mp_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
typedef long mp_off_t;
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
diff --git a/teensy/mpconfigport.h b/teensy/mpconfigport.h
index 05c040d415..334f76d8a0 100644
--- a/teensy/mpconfigport.h
+++ b/teensy/mpconfigport.h
@@ -59,8 +59,6 @@ extern const struct _mp_obj_module_t time_module;
typedef int32_t mp_int_t; // must be pointer size
typedef unsigned int mp_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
typedef long mp_off_t;
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
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>
diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h
index a860c2e322..ccf8768bf5 100644
--- a/windows/mpconfigport.h
+++ b/windows/mpconfigport.h
@@ -138,9 +138,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
-
#if MICROPY_PY_OS_DUPTERM
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
void mp_hal_dupterm_tx_strn(const char *str, size_t len);