summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-12 07:38:30 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-12 07:38:30 -0600
commitbb4588788322fc09b519c6b06c4e561ad7d35813 (patch)
treedd8395f7a000a08255a6a685fb233da5f1189fb2
parent4b8966de86e483de99ea7fcd76d8535f5e3524b2 (diff)
downloadnuttx-bb4588788322fc09b519c6b06c4e561ad7d35813.tar.gz
nuttx-bb4588788322fc09b519c6b06c4e561ad7d35813.tar.bz2
nuttx-bb4588788322fc09b519c6b06c4e561ad7d35813.zip
Micro Python: Flesh out make clean target; mp_int_t and mp_uint_t should be pointer size
-rw-r--r--apps/interpreters/micropython/Makefile3
-rw-r--r--apps/interpreters/micropython/mpconfigport.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/apps/interpreters/micropython/Makefile b/apps/interpreters/micropython/Makefile
index 75ed5f45d..26a9d1c59 100644
--- a/apps/interpreters/micropython/Makefile
+++ b/apps/interpreters/micropython/Makefile
@@ -153,6 +153,9 @@ endif
depend: .depend
clean:
+ $(call DELDIR, build)
+ $(call DELFILE, .built)
+ $(call CLEAN)
distclean: clean
$(call DELFILE, Make.dep)
diff --git a/apps/interpreters/micropython/mpconfigport.h b/apps/interpreters/micropython/mpconfigport.h
index c2cd1cf63..0ca121380 100644
--- a/apps/interpreters/micropython/mpconfigport.h
+++ b/apps/interpreters/micropython/mpconfigport.h
@@ -100,8 +100,8 @@
****************************************************************************/
typedef int wint_t; /* For newlib's math.h. See wchar_t */
-typedef int32_t mp_int_t; /* must be pointer size */
-typedef uint32_t mp_uint_t; /* must be pointer size */
+typedef intptr_t mp_int_t; /* must be pointer size */
+typedef uintptr_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;