zephyr/main: Move var declarations to the top of file.

pull/3483/head
Paul Sokolovsky 2017-12-08 12:39:57 +02:00
rodzic 53e111800f
commit 55d33d5897
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -4,7 +4,7 @@
* The MIT License (MIT) * The MIT License (MIT)
* *
* Copyright (c) 2013, 2014 Damien P. George * 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 * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -41,6 +41,9 @@
#include "lib/utils/pyexec.h" #include "lib/utils/pyexec.h"
#include "lib/mp-readline/readline.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) { void do_str(const char *src, mp_parse_input_kind_t input_kind) {
nlr_buf_t nlr; nlr_buf_t nlr;
if (nlr_push(&nlr) == 0) { 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) { void init_zephyr(void) {
// We now rely on CONFIG_NET_APP_SETTINGS to set up bootstrap // We now rely on CONFIG_NET_APP_SETTINGS to set up bootstrap
// network addresses. // network addresses.