diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-12-02 21:25:54 +0000 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-12-02 21:25:54 +0000 |
commit | b6f2fbbe62be72e7eb52fda9f5ca5a8838869ae4 (patch) | |
tree | 51ed0a8f18a01f68e5979e435bbcb29d75a40193 | |
parent | 125e2785025ed1a4363800d712bdf4e782a94cd4 (diff) |
Move all the includes one place to the left
-rw-r--r-- | builtin.c | 1 | ||||
-rw-r--r-- | builtin.h | 11 | ||||
-rw-r--r-- | bytecode.h | 9 | ||||
-rw-r--r-- | compile.c | 1 | ||||
-rw-r--r-- | compile.h | 5 | ||||
-rw-r--r-- | execute.c | 1 |
6 files changed, 17 insertions, 11 deletions
@@ -1,5 +1,6 @@ #include <string.h> #include "builtin.h" +#include "bytecode.h" #include "compile.h" #include "parser.h" #include "locfile.h" @@ -1,9 +1,18 @@ #ifndef BUILTIN_H #define BUILTIN_H -#include "bytecode.h" #include "compile.h" block builtins_bind(block); + +typedef void (*cfunction_ptr)(jv input[], jv output[]); + +struct cfunction { + cfunction_ptr fptr; + const char* name; + int nargs; +}; + + #endif @@ -4,14 +4,7 @@ #include "jv.h" #include "opcode.h" - -typedef void (*cfunction_ptr)(jv input[], jv output[]); - -struct cfunction { - cfunction_ptr fptr; - const char* name; - int nargs; -}; +#include "builtin.h" #define MAX_CFUNCTION_ARGS 10 struct symbol_table { @@ -3,6 +3,7 @@ #include <stdlib.h> #include "opcode.h" #include "compile.h" +#include "bytecode.h" #include "locfile.h" struct inst { @@ -1,10 +1,13 @@ #ifndef COMPILE_H #define COMPILE_H #include <stdint.h> -#include "bytecode.h" +#include "jv.h" #include "opcode.h" #include "locfile.h" +struct bytecode; +struct symbol_table; + struct inst; typedef struct inst inst; @@ -7,7 +7,6 @@ #include "opcode.h" #include "bytecode.h" -#include "compile.h" #include "forkable_stack.h" #include "frame_layout.h" |