From bb4588788322fc09b519c6b06c4e561ad7d35813 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 12 Jan 2015 07:38:30 -0600 Subject: Micro Python: Flesh out make clean target; mp_int_t and mp_uint_t should be pointer size --- apps/interpreters/micropython/Makefile | 3 +++ apps/interpreters/micropython/mpconfigport.h | 4 ++-- 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; -- cgit v1.2.3