summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-12-08 12:39:57 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-12-08 12:39:57 +0200
commit55d33d5897b27dd4b70041a38674ff1bd55709a4 (patch)
treeb0e28861b93a3fcf37ee2d71ff64e637fb06c212
parent53e111800f9e53733042442eefea0ffc293a35df (diff)
zephyr/main: Move var declarations to the top of file.
-rw-r--r--ports/zephyr/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ports/zephyr/main.c b/ports/zephyr/main.c
index 7eb9da3e1..d6ddc65cc 100644
--- a/ports/zephyr/main.c
+++ b/ports/zephyr/main.c
@@ -4,7 +4,7 @@
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 Damien P. George
- * Copyright (c) 2016 Linaro Limited
+ * Copyright (c) 2016-2017 Linaro Limited
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -41,6 +41,9 @@
#include "lib/utils/pyexec.h"
#include "lib/mp-readline/readline.h"
+static char *stack_top;
+static char heap[MICROPY_HEAP_SIZE];
+
void do_str(const char *src, mp_parse_input_kind_t input_kind) {
nlr_buf_t nlr;
if (nlr_push(&nlr) == 0) {
@@ -56,9 +59,6 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) {
}
}
-static char *stack_top;
-static char heap[MICROPY_HEAP_SIZE];
-
void init_zephyr(void) {
// We now rely on CONFIG_NET_APP_SETTINGS to set up bootstrap
// network addresses.