[commit] language.h minor cleanup

Mark Kettenis mark.kettenis@xs4all.nl
Mon Dec 17 10:46:00 GMT 2007


> Date: Mon, 17 Dec 2007 11:03:01 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> 
> Hello,
> 
> This is something I noticed while working on the "struct parse_context"
> task: There was one commented-out enum declaration that I decommented,

As far as I know the comment:

> -/* enum exp_opcode;     ANSI's `wisdom' didn't include forward enum decls. */

is right, so you shouldn't have comitted this :(.  Perhaps it is now a
GCC extension to allow these, but as far as I remember older versions
of GCC didn't accept this.

In that pas we simply moved these enums to defs.h, which should always
be included before any other headers.

Mark



More information about the Gdb-patches mailing list