lalr1.cc: remove useless forward declaration.

* data/lalr1.cc: Include location.hh before stack.hh.
	Remove the useless forward declarations of position and location.
	Reported by Chris Morley.
	* data/glr.cc: Likewise.

(cherry picked from commit 7799ef1594)

Conflicts:

	data/lalr1.cc.
This commit is contained in:
Akim Demaille
2010-04-07 16:01:42 +02:00
parent 88bb35d6ac
commit df5df58d91
3 changed files with 10 additions and 14 deletions

View File

@@ -1,3 +1,11 @@
2010-04-13 Akim Demaille <demaille@gostai.com>
lalr1.cc: remove useless forward declaration.
* data/lalr1.cc: Include location.hh before stack.hh.
Remove the useless forward declarations of position and location.
Reported by Chris Morley.
* data/glr.cc: Likewise.
2010-04-11 Joel E. Denny <joeldenny@joeldenny.org>
* NEWS (2.4.3): Mention fix for Sun Studio C++.

View File

@@ -229,17 +229,11 @@ b4_copyright([Skeleton interface for Bison GLR parsers in C++],
#include <string>
#include <iostream>
#include "location.hh"
/* Using locations. */
#define YYLSP_NEEDED ]b4_locations_flag[
]b4_namespace_open[
class position;
class location;
]b4_namespace_close[
#include "location.hh"
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG ]b4_debug_flag[

View File

@@ -46,14 +46,8 @@ dnl FIXME: This is wrong, we want computed header guards.
#include <string>
#include <iostream>
#include "stack.hh"
]b4_namespace_open[
class position;
class location;
]b4_namespace_close[
#include "location.hh"
#include "stack.hh"
/* Enabling traces. */
#ifndef YYDEBUG