From 51dfcb4bb7613ed164952712d9a5235a7b833cde Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 1 Jan 2015 20:27:54 +0000 Subject: py: Move to guarded includes, everywhere in py/ core. Addresses issue #1022. --- py/emit.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'py/emit.h') diff --git a/py/emit.h b/py/emit.h index f039770a5..49bb76ead 100644 --- a/py/emit.h +++ b/py/emit.h @@ -24,6 +24,13 @@ * THE SOFTWARE. */ +#ifndef __MICROPY_INCLUDED_PY_EMIT_H__ +#define __MICROPY_INCLUDED_PY_EMIT_H__ + +#include "py/lexer.h" +#include "py/scope.h" +#include "py/runtime0.h" + /* Notes on passes: * We don't know exactly the opcodes in pass 1 because they depend on the * closing over of variables (LOAD_CLOSURE, BUILD_TUPLE, MAKE_CLOSURE), which @@ -33,10 +40,6 @@ * This is problematic for some emitters (x64) since they need to know the maximum * stack size to compile the entry to the function, and this affects code size. */ -#ifndef __MICROPY_INCLUDED_PY_EMIT_H__ -#define __MICROPY_INCLUDED_PY_EMIT_H__ - -#include "py/runtime0.h" typedef enum { MP_PASS_SCOPE = 1, // work out id's and their kind, and number of labels -- cgit v1.2.3