From 333fb04cef9b5bb4e10e6d38c4debda99dd7bc7a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 12 Jan 2015 07:38:30 -0600 Subject: [PATCH] Micro Python: Flesh out make clean target; mp_int_t and mp_uint_t should be pointer size --- interpreters/micropython/Makefile | 3 +++ interpreters/micropython/mpconfigport.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/interpreters/micropython/Makefile b/interpreters/micropython/Makefile index 75ed5f45d..26a9d1c59 100644 --- a/interpreters/micropython/Makefile +++ b/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/interpreters/micropython/mpconfigport.h b/interpreters/micropython/mpconfigport.h index c2cd1cf63..0ca121380 100644 --- a/interpreters/micropython/mpconfigport.h +++ b/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;