diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-11 13:06:06 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-11 13:06:06 -0600 |
commit | 9d2fd219a7ab48045ee8a7936225551680ed6c99 (patch) | |
tree | 5cf3ab5229d2d98583a3e1877f7940a8f9b4dfd6 /apps/interpreters | |
parent | c8de483db09200aef079b2d55bdddcc598dd625f (diff) | |
download | px4-nuttx-9d2fd219a7ab48045ee8a7936225551680ed6c99.tar.gz px4-nuttx-9d2fd219a7ab48045ee8a7936225551680ed6c99.tar.bz2 px4-nuttx-9d2fd219a7ab48045ee8a7936225551680ed6c99.zip |
Micro Python: Changes to pyexec.c to get it to compile. Still other compilation issues
Diffstat (limited to 'apps/interpreters')
-rw-r--r-- | apps/interpreters/micropython/pyexec.c | 10 | ||||
-rw-r--r-- | apps/interpreters/micropython/pyexec.h | 6 |
2 files changed, 7 insertions, 9 deletions
diff --git a/apps/interpreters/micropython/pyexec.c b/apps/interpreters/micropython/pyexec.c index 10676230e..36a313a0f 100644 --- a/apps/interpreters/micropython/pyexec.c +++ b/apps/interpreters/micropython/pyexec.c @@ -37,7 +37,13 @@ #include <stdint.h> #include <time.h> +#include "py/mpconfig.h" +#include "py/misc.h" +#include "py/qstr.h" +#include "py/obj.h" #include "py/nlr.h" +#include "py/lexer.h" +#include "py/parse.h" #include "py/parsehelper.h" #include "py/compile.h" #include "py/runtime.h" @@ -291,9 +297,7 @@ int pyexec_friendly_repl(void) vstr_init(&line, 32); friendly_repl_reset: - fprintf(stdout, - "Micro Python " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE - "; NuttX with " CONFIG_ARCH_FAMILY " " CONFIG_ARCH_CHIP "\r\n"); + fprintf(stdout, "Micro Python " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "\n"); fprintf(stdout, "Type \"help()\" for more information.\r\n"); for (;;) diff --git a/apps/interpreters/micropython/pyexec.h b/apps/interpreters/micropython/pyexec.h index 07993a868..3ef5b3673 100644 --- a/apps/interpreters/micropython/pyexec.h +++ b/apps/interpreters/micropython/pyexec.h @@ -31,12 +31,6 @@ #define __APPS_INTERPRETERS_MICROPYTHON_PYEXEC_H 1 /**************************************************************************** - * Included Files - ****************************************************************************/ - -#include "py/obj.h" - -/**************************************************************************** * Pre-processor Definitions ****************************************************************************/ |