X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/6afc30cc8763e690a1f9b8aa21fbc7b72244b5c6..75ad86eebd3f49dff81976eb83036eb7b7793e68:/data/location.cc diff --git a/data/location.cc b/data/location.cc index c3432678..68ae2f71 100644 --- a/data/location.cc +++ b/data/location.cc @@ -1,6 +1,7 @@ # C++ skeleton for Bison -# Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, +# Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -26,7 +27,7 @@ b4_copyright([Positions for Bison parsers in C++], /** ** \file position.hh - ** Define the ]b4_get_percent_define([[namespace]])[::position class. + ** Define the ]b4_percent_define_get([[namespace]])[::position class. */ #ifndef BISON_POSITION_HH @@ -36,7 +37,7 @@ b4_copyright([Positions for Bison parsers in C++], # include # include -namespace ]b4_get_percent_define([[namespace]])[ +namespace ]b4_percent_define_get([[namespace]])[ { /// Abstract a position. class position @@ -51,7 +52,7 @@ namespace ]b4_get_percent_define([[namespace]])[ ])[ /// Initialization. - inline void initialize (]b4_get_percent_define([[filename_type]])[* fn) + inline void initialize (]b4_percent_define_get([[filename_type]])[* fn) { filename = fn; line = ]b4_location_initial_line[; @@ -77,7 +78,7 @@ namespace ]b4_get_percent_define([[namespace]])[ public: /// File name to which this position refers. - ]b4_get_percent_define([[filename_type]])[* filename; + ]b4_percent_define_get([[filename_type]])[* filename; /// Current line number. unsigned int line; /// Current column number. @@ -113,7 +114,7 @@ namespace ]b4_get_percent_define([[namespace]])[ { return begin + -width; } -]m4_if(b4_get_percent_define([[define_location_comparison]]), [1], [[ +]b4_percent_define_flag_if([[define_location_comparison]], [[ /// Compare two position objects. inline bool operator== (const position& pos1, const position& pos2) @@ -151,7 +152,7 @@ b4_copyright([Locations for Bison parsers in C++], /** ** \file location.hh - ** Define the ]b4_get_percent_define([[namespace]])[::location class. + ** Define the ]b4_percent_define_get([[namespace]])[::location class. */ #ifndef BISON_LOCATION_HH @@ -161,7 +162,7 @@ b4_copyright([Locations for Bison parsers in C++], # include # include "position.hh" -namespace ]b4_get_percent_define([[namespace]])[ +namespace ]b4_percent_define_get([[namespace]])[ { /// Abstract a location. @@ -177,7 +178,7 @@ namespace ]b4_get_percent_define([[namespace]])[ ])[ /// Initialization. - inline void initialize (]b4_get_percent_define([[filename_type]])[* fn) + inline void initialize (]b4_percent_define_get([[filename_type]])[* fn) { begin.initialize (fn); end = begin; @@ -235,7 +236,7 @@ namespace ]b4_get_percent_define([[namespace]])[ res.columns (width); return res; } -]m4_if(b4_get_percent_define([[define_location_comparison]]), [1], [[ +]b4_percent_define_flag_if([[define_location_comparison]], [[ /// Compare two location objects. inline bool operator== (const location& loc1, const location& loc2)