py/gc: Don't include mpconfig.h and misc.h in gc.h.

Because gc.h doesn't reference any symbol from these header files.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
pull/6842/head
Xiang Xiao 2021-01-11 14:10:25 +08:00 zatwierdzone przez Damien George
rodzic 7f7b4f2bc6
commit 5fdf351178
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -26,6 +26,7 @@
#include <stdio.h>
#include "py/mpconfig.h"
#include "py/gc.h"
#include "gccollect.h"

Wyświetl plik

@ -26,11 +26,9 @@
#ifndef MICROPY_INCLUDED_PY_GC_H
#define MICROPY_INCLUDED_PY_GC_H
#include <stdbool.h>
#include <stdint.h>
#include "py/mpconfig.h"
#include "py/misc.h"
void gc_init(void *start, void *end);
// These lock/unlock functions can be nested.