8000 zephyr/main: Move var declarations to the top of file. · lvgl/lv_micropython@55d33d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 55d33d5

Browse files
committed
zephyr/main: Move var declarations to the top of file.
1 parent 53e1118 commit 55d33d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ports/zephyr/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* The MIT License (MIT)
55
*
66
* Copyright (c) 2013, 2014 Damien P. George
7-
* Copyright (c) 2016 Linaro Limited
7+
* Copyright (c) 2016-2017 Linaro Limited
88
*
99
* Permission is hereby granted, free of charge, to any person obtaining a copy
1010
* of this software and associated documentation files (the "Software"), to deal
@@ -41,6 +41,9 @@
4141
#include "lib/utils/pyexec.h"
4242
#include "lib/mp-readline/readline.h"
4343

44+
static char *stack_top;
45+
static char heap[MICROPY_HEAP_SIZE];
46+
4447
void do_str(const char *src, mp_parse_input_kind_t input_kind) {
4548
nlr_buf_t nlr;
4649
if (nlr_push(&nlr) == 0) {
@@ -56,9 +59,6 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) {
5659
}
5760
}
5861

59-
static char *stack_top;
60-
static char heap[MICROPY_HEAP_SIZE];
61-
6262
void init_zephyr(void) {
6363
// We now rely on CONFIG_NET_APP_SETTINGS to set up bootstrap
6464
// network addresses.

0 commit comments

Comments
 (0)
0