summaryrefslogtreecommitdiff
path: root/docs/develop/porting.rst
diff options
context:
space:
mode:
authorDavid Lechner <david@pybricks.com>2022-07-01 14:06:10 -0500
committerDamien George <damien@micropython.org>2022-07-18 13:48:49 +1000
commit81dbea1ce3c27a609a9b27caadd12cceef86a907 (patch)
treef870095ea5709fdb102ec9d58fcd7dd32275b2e2 /docs/develop/porting.rst
parentfc3d7ae11be11a7f05709ebfd439061fce9ee555 (diff)
shared/readline: Use MP_REGISTER_ROOT_POINTER().
This uses MP_REGISTER_ROOT_POINTER() to register the readline_history root pointer array used by shared/readline.c and removes the registration from all mpconfigport.h files. This also required adding a new MICROPY_READLINE_HISTORY_SIZE config option since not all ports used the same sized array. Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'docs/develop/porting.rst')
-rw-r--r--docs/develop/porting.rst3
1 files changed, 0 insertions, 3 deletions
diff --git a/docs/develop/porting.rst b/docs/develop/porting.rst
index 3d0553205..0511f5d27 100644
--- a/docs/develop/porting.rst
+++ b/docs/develop/porting.rst
@@ -174,9 +174,6 @@ The following is an example of an ``mpconfigport.h`` file:
#define MP_STATE_PORT MP_STATE_VM
- #define MICROPY_PORT_ROOT_POINTERS \
- const char *readline_hist[8];
-
This configuration file contains machine-specific configurations including aspects like if different
MicroPython features should be enabled e.g. ``#define MICROPY_ENABLE_GC (1)``. Making this Setting
``(0)`` disables the feature.