diff options
author | Damien George <damien.p.george@gmail.com> | 2017-09-12 16:03:52 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-09-12 16:03:52 +1000 |
commit | da8c4c2653b5121070f8c2872aead79d67d28441 (patch) | |
tree | aad167f3cb5ba4234a00685e972e8ad0fa5eeb8b /py | |
parent | b02be234e1981d42fc890bac5cc7cf3b7e05dfa8 (diff) |
py/builtinhelp: Change signature of help text var from pointer to array.
As a pointer (const char *) it takes up an extra word of storage which is
in RAM.
Diffstat (limited to 'py')
-rw-r--r-- | py/builtin.h | 2 | ||||
-rw-r--r-- | py/builtinhelp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/py/builtin.h b/py/builtin.h index a637b6e22..84b99a8a4 100644 --- a/py/builtin.h +++ b/py/builtin.h @@ -118,6 +118,6 @@ extern const mp_obj_module_t mp_module_webrepl; extern const mp_obj_module_t mp_module_framebuf; extern const mp_obj_module_t mp_module_btree; -extern const char *MICROPY_PY_BUILTINS_HELP_TEXT; +extern const char MICROPY_PY_BUILTINS_HELP_TEXT[]; #endif // MICROPY_INCLUDED_PY_BUILTIN_H diff --git a/py/builtinhelp.c b/py/builtinhelp.c index e10e48b7d..c9992906d 100644 --- a/py/builtinhelp.c +++ b/py/builtinhelp.c @@ -32,7 +32,7 @@ #if MICROPY_PY_BUILTINS_HELP -const char *mp_help_default_text = +const char mp_help_default_text[] = "Welcome to MicroPython!\n" "\n" "For online docs please visit http://docs.micropython.org/\n" |