zephyr/main: Move var declarations to the top of file.
This commit is contained in:
parent
53e111800f
commit
55d33d5897
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue