[commit] remove opaque enum declaration in symtab.h

Joel Brobecker brobecker@adacore.com
Wed Dec 19 13:30:00 GMT 2007


This fixes the only other instance I could find of the use of an opaque
enum declaration.  The enum type is defined inside defs.h, so I simply
included this file, and removed the enum declaration.

2007-12-19  Joel Brobecker  <brobecker@adacore.com>

        * symtab.h: #include "defs.h".
        (enum language): Remove opaque declaration.
        * Makefile.in (symtab_h): Update dependencies.

Tested on x86-linux by rebuilding GDB.
Checked in.

-- 
Joel
-------------- next part --------------
Index: symtab.h
===================================================================
RCS file: /cvs/src/src/gdb/symtab.h,v
retrieving revision 1.108
diff -u -p -r1.108 symtab.h
--- symtab.h	19 Oct 2007 12:26:34 -0000	1.108
+++ symtab.h	19 Dec 2007 13:16:54 -0000
@@ -22,6 +22,8 @@
 #if !defined (SYMTAB_H)
 #define SYMTAB_H 1
 
+#include "defs.h"
+
 /* Opaque declarations.  */
 struct ui_file;
 struct frame_info;
@@ -32,7 +34,6 @@ struct block;
 struct blockvector;
 struct axs_value;
 struct agent_expr;
-enum language;
 
 /* Some of the structures in this file are space critical.
    The space-critical structures are:
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.966
diff -u -p -r1.966 Makefile.in
--- Makefile.in	17 Dec 2007 17:49:28 -0000	1.966
+++ Makefile.in	19 Dec 2007 13:17:07 -0000
@@ -885,7 +885,7 @@ srec_h = srec.h
 stabsread_h = stabsread.h
 stack_h = stack.h
 symfile_h = symfile.h $(symtab_h)
-symtab_h = symtab.h
+symtab_h = symtab.h $(defs_h)
 target_h = target.h $(bfd_h) $(symtab_h) $(dcache_h) $(memattr_h) $(vec_h)
 target_descriptions_h = target-descriptions.h
 terminal_h = terminal.h


More information about the Gdb-patches mailing list