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.
This commit is contained in:
Akim Demaille
2010-04-07 16:01:42 +02:00
parent 06cb07d517
commit 7799ef1594
3 changed files with 10 additions and 11 deletions

View File

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