mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
c++: make position.hh completely useless
Let's put the definition of position into location.hh, there's no real value in keeping them separate: they are small, and share the same requirements. To help users transition to this new model, still generate position.hh by default, but as a simple include to location.hh. * data/location.cc (api.position.file): Accept only 'none' as possible value. (position.hh): Make it a stub. (location.hh): Adjust. (b4_position_define): Merge into... (b4_location_define): this. * data/glr.cc, data/lalr1.cc, tests/input.at, tests/output.at: Adjust.
This commit is contained in:
@@ -143,7 +143,9 @@ m4_ifdef([b4_stack_file],
|
||||
// used to define is now defined with the parser itself.
|
||||
//
|
||||
// To get rid of this file:
|
||||
// 1. add '%define api.stack.file none' to your grammar file
|
||||
// 1. add '%define api.stack.file none'
|
||||
// or '%define api.location.file none'
|
||||
// or '%define api.location.file "my-loc.hh"' to your grammar file
|
||||
// 2. add 'require "3.2"' to your grammar file
|
||||
// 3. remove references to this file from your build system.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user