mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 21:11:12 +02:00
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>
This commit is contained in:
committed by
Damien George
parent
7f7b4f2bc6
commit
5fdf351178
@@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "py/mpconfig.h"
|
||||||
#include "py/gc.h"
|
#include "py/gc.h"
|
||||||
#include "gccollect.h"
|
#include "gccollect.h"
|
||||||
|
|
||||||
|
4
py/gc.h
4
py/gc.h
@@ -26,11 +26,9 @@
|
|||||||
#ifndef MICROPY_INCLUDED_PY_GC_H
|
#ifndef MICROPY_INCLUDED_PY_GC_H
|
||||||
#define MICROPY_INCLUDED_PY_GC_H
|
#define MICROPY_INCLUDED_PY_GC_H
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "py/mpconfig.h"
|
|
||||||
#include "py/misc.h"
|
|
||||||
|
|
||||||
void gc_init(void *start, void *end);
|
void gc_init(void *start, void *end);
|
||||||
|
|
||||||
// These lock/unlock functions can be nested.
|
// These lock/unlock functions can be nested.
|
||||||
|
Reference in New Issue
Block a user