This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] simplify macrotab.h include dependencies


Just FYI,

This simplifies the include dependencies for macrotab.h.  Committed as ob..

enjoy,
Andrew
2002-06-28  Andrew Cagney  <ac131313@redhat.com>

	* macrotab.h: Do not include "obstack.h" or "bcache.h".
	(struct obstack, struct bcache): Add opaque declarations.
	* Makefile.in (macrotab_h): Update

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.216
diff -u -r1.216 Makefile.in
--- Makefile.in	28 Jun 2002 22:09:11 -0000	1.216
+++ Makefile.in	28 Jun 2002 23:39:39 -0000
@@ -637,7 +637,7 @@
 language_h =	language.h
 linespec_h =	linespec.h
 macroexp_h =	macroexp.h
-macrotab_h =    macrotab.h $(obstack_h) $(bcache_h)
+macrotab_h =    macrotab.h
 macroscope_h =  macroscope.h $(macrotab_h) $(symtab_h)
 memattr_h =     memattr.h
 monitor_h =	monitor.h
Index: macrotab.h
===================================================================
RCS file: /cvs/src/src/gdb/macrotab.h,v
retrieving revision 1.2
diff -u -r1.2 macrotab.h
--- macrotab.h	13 May 2002 18:13:07 -0000	1.2
+++ macrotab.h	28 Jun 2002 23:39:40 -0000
@@ -22,8 +22,8 @@
 #ifndef MACROTAB_H
 #define MACROTAB_H
 
-#include "obstack.h"
-#include "bcache.h"
+struct obstack;
+struct bcache;
 
 /* How do we represent a source location?  I mean, how should we
    represent them within GDB; the user wants to use all sorts of

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]