summaryrefslogtreecommitdiff
path: root/docs/develop
diff options
context:
space:
mode:
authorJeff Epler <jepler@unpythonic.net>2025-10-11 19:12:55 -0500
committerDamien George <damien@micropython.org>2025-10-23 15:12:28 +1100
commit007f127a61ea058ca010b85883072bdefe0234c0 (patch)
treef39d63b4cdc67ff1374b4e774511e9bb07718c58 /docs/develop
parenteac81de4e0a462dd8121f93b42271774ced3c85f (diff)
all: Simplify mp_int_t/mp_uint_t definition.
Assuming proper C99 language support, we can select "the int type as big as a pointer" (most of the time) or "the 64-bit int type" (nanboxing with REPR_D), and then define everything else automatically. This simplifies port configuration files. And the types can still be overridden if needed. Signed-off-by: Jeff Epler <jepler@unpythonic.net>
Diffstat (limited to 'docs/develop')
-rw-r--r--docs/develop/porting.rst2
1 files changed, 0 insertions, 2 deletions
diff --git a/docs/develop/porting.rst b/docs/develop/porting.rst
index c0cf130e0..5dff843a3 100644
--- a/docs/develop/porting.rst
+++ b/docs/develop/porting.rst
@@ -161,8 +161,6 @@ The following is an example of an ``mpconfigport.h`` file:
// Type definitions for the specific machine.
- typedef intptr_t mp_int_t; // must be pointer size
- typedef uintptr_t mp_uint_t; // must be pointer size
typedef long mp_off_t;
// We need to provide a declaration/definition of alloca().