From 8ffbb46652f69e662ce39c135f1867599c0f5477 Mon Sep 17 00:00:00 2001
From: Kamil Dudka <kdudka@redhat.com>
Date: Fri, 7 Aug 2009 21:48:44 +0200
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 <kdudka@redhat.com>
---
compile.h | 2 ++
flow.h | 2 ++
ptrlist.h | 2 ++
scope.h | 2 ++
storage.h | 2 ++
5 files changed, 10 insertions(+), 0 deletions(-)
@@ -1,6 +1,8 @@
#ifndef COMPILE_H
#define COMPILE_H
+#include "symbol.h"
+
extern void emit_one_symbol(struct symbol *);
extern void emit_unit_begin(const char *);
extern void emit_unit_end(void);
@@ -1,6 +1,8 @@
#ifndef FLOW_H
#define FLOW_H
+#include "symbol.h"
+
extern unsigned long bb_generation;
#define REPEAT_CSE 1
@@ -7,6 +7,8 @@
* (C) Copyright Linus Torvalds 2003-2005
*/
+#include <stdlib.h>
+
#define container(ptr, type, member) \
(type *)((void *)(ptr) - offsetof(type, member))
@@ -9,6 +9,8 @@
* Licensed under the Open Software License version 1.1
*/
+#include "symbol.h"
+
struct scope {
struct token *token; /* Scope start information */
struct symbol_list *symbols; /* List of symbols in this scope */
@@ -1,6 +1,8 @@
#ifndef STORAGE_H
#define STORAGE_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
--
1.6.3.3