Let position and location be PODs.

* data/location.cc (position::initialize, location::initialize): New.
(position::position, location::location): Define only if
b4_location_constructors is defined.
* data/lalr1.cc (b4_location_constructors): Define it for backward
compatibility.
* doc/bison.texinfo (Initial Action Decl): Use initialize.
This commit is contained in:
Akim Demaille
2005-11-12 14:13:03 +00:00
parent 98ae96438e
commit 4626a15dd1
4 changed files with 37 additions and 17 deletions

View File

@@ -3800,7 +3800,7 @@ For instance, if your locations use a file name, you may use
%parse-param @{ char const *file_name @};
%initial-action
@{
@@$.begin.filename = @@$.end.filename = file_name;
@@$.initialize (file_name);
@};
@end example