summaryrefslogtreecommitdiffstatshomepage
path: root/py/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/parse.h')
-rw-r--r--py/parse.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/parse.h b/py/parse.h
index 2087a2d1a2..4916d463bb 100644
--- a/py/parse.h
+++ b/py/parse.h
@@ -23,15 +23,17 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-#include "py/parse2.h"
#ifndef MICROPY_INCLUDED_PY_PARSE_H
#define MICROPY_INCLUDED_PY_PARSE_H
#include <stddef.h>
#include <stdint.h>
+#include "py/parse2.h"
#include "py/obj.h"
+#if !MICROPY_USE_SMALL_HEAP_COMPILER
+
struct _mp_lexer_t;
// a mp_parse_node_t is:
@@ -105,4 +107,6 @@ typedef struct _mp_parse_t {
mp_parse_tree_t mp_parse(struct _mp_lexer_t *lex, mp_parse_input_kind_t input_kind);
void mp_parse_tree_clear(mp_parse_tree_t *tree);
+#endif // !MICROPY_USE_SMALL_HEAP_COMPILER
+
#endif // MICROPY_INCLUDED_PY_PARSE_H