From: Nicholas Nethercote Date: Sun, 26 Jun 2005 14:48:23 +0000 (+0000) Subject: Don't include headers from headers -- make inclusions explicit in all C X-Git-Tag: svn/VALGRIND_3_0_0~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f87b53e9d9c67bcdd76ce23007a5665f5270a0a7;p=thirdparty%2Fvalgrind.git Don't include headers from headers -- make inclusions explicit in all C files. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4031 --- diff --git a/coregrind/m_debuginfo/dwarf.c b/coregrind/m_debuginfo/dwarf.c index ffc11bbc68..08e5f3c462 100644 --- a/coregrind/m_debuginfo/dwarf.c +++ b/coregrind/m_debuginfo/dwarf.c @@ -29,12 +29,14 @@ */ #include "pub_core_basics.h" +#include "pub_core_debuginfo.h" #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" #include "pub_core_libcprint.h" #include "pub_core_mallocfree.h" #include "pub_core_options.h" +#include "priv_symtypes.h" #include "priv_symtab.h" diff --git a/coregrind/m_debuginfo/priv_symtab.h b/coregrind/m_debuginfo/priv_symtab.h index f74ba2e5e4..2ff12b056d 100644 --- a/coregrind/m_debuginfo/priv_symtab.h +++ b/coregrind/m_debuginfo/priv_symtab.h @@ -31,9 +31,6 @@ #ifndef __PRIV_SYMTAB_H #define __PRIV_SYMTAB_H -#include "pub_core_debuginfo.h" -#include "priv_symtypes.h" - /* A structure to hold an ELF symbol (very crudely). */ typedef struct { diff --git a/coregrind/m_debuginfo/stabs.c b/coregrind/m_debuginfo/stabs.c index f1be29a743..9c797442e9 100644 --- a/coregrind/m_debuginfo/stabs.c +++ b/coregrind/m_debuginfo/stabs.c @@ -29,11 +29,13 @@ */ #include "pub_core_basics.h" +#include "pub_core_debuginfo.h" #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" #include "pub_core_libcprint.h" #include "pub_core_mallocfree.h" +#include "priv_symtypes.h" #include "priv_symtab.h" #include /* stabs defns */ diff --git a/coregrind/m_debuginfo/symtab.c b/coregrind/m_debuginfo/symtab.c index 9a516b4544..a75aef59d8 100644 --- a/coregrind/m_debuginfo/symtab.c +++ b/coregrind/m_debuginfo/symtab.c @@ -44,6 +44,8 @@ #include "pub_core_profile.h" #include "pub_core_redir.h" #include "pub_core_tooliface.h" // For VG_(needs).data_syms + +#include "priv_symtypes.h" #include "priv_symtab.h" #include /* ELF defns */