From 03430d088f64a3b1d4b5bbbc86da3c352010702e Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 11 Aug 2009 12:59:23 +0000 Subject: [PATCH] make sparse headers self-compilable... ... and thus possible to include them in arbitrary order and without any external dependencies. Signed-off-by: Kamil Dudka Signed-off-by: Christopher Li --- compile.h | 2 ++ flow.h | 5 +++++ ptrlist.h | 2 ++ scope.h | 2 ++ storage.h | 3 +++ 5 files changed, 14 insertions(+) diff --git a/compile.h b/compile.h index 0db8fdb5..177363a7 100644 --- a/compile.h +++ b/compile.h @@ -1,6 +1,8 @@ #ifndef COMPILE_H #define COMPILE_H +struct symbol; + extern void emit_one_symbol(struct symbol *); extern void emit_unit_begin(const char *); extern void emit_unit_end(void); diff --git a/flow.h b/flow.h index fbc9505f..370aaddf 100644 --- a/flow.h +++ b/flow.h @@ -1,11 +1,16 @@ #ifndef FLOW_H #define FLOW_H +#include "lib.h" + extern unsigned long bb_generation; #define REPEAT_CSE 1 #define REPEAT_SYMBOL_CLEANUP 2 +struct entrypoint; +struct instruction; + extern int simplify_flow(struct entrypoint *ep); extern void simplify_symbol_usage(struct entrypoint *ep); diff --git a/ptrlist.h b/ptrlist.h index dae0906f..fbfc0809 100644 --- a/ptrlist.h +++ b/ptrlist.h @@ -1,6 +1,8 @@ #ifndef PTR_LIST_H #define PTR_LIST_H +#include + /* * Generic pointer list manipulation code. * diff --git a/scope.h b/scope.h index 5f1f2324..0fab2864 100644 --- a/scope.h +++ b/scope.h @@ -9,6 +9,8 @@ * Licensed under the Open Software License version 1.1 */ +struct symbol; + struct scope { struct token *token; /* Scope start information */ struct symbol_list *symbols; /* List of symbols in this scope */ diff --git a/storage.h b/storage.h index 610cbfd2..e049e235 100644 --- a/storage.h +++ b/storage.h @@ -1,6 +1,9 @@ #ifndef STORAGE_H #define STORAGE_H +#include "allocate.h" +#include "lib.h" + /* * The "storage" that underlies an incoming/outgoing pseudo. It's * basically the backing store for a pseudo, and may be a real hardware -- 2.11.4.GIT