]> git.saurik.com Git - bison.git/commitdiff
Style changes.
authorAkim Demaille <demaille@gostai.com>
Wed, 31 Dec 2008 15:12:02 +0000 (16:12 +0100)
committerAkim Demaille <demaille@gostai.com>
Wed, 25 Feb 2009 22:31:34 +0000 (23:31 +0100)
* etc/bench.pl.in (generate_grammar_list): Consitently use
location_type, not yy::location.

ChangeLog
etc/bench.pl.in

index 6f8b1f6858cfdbe94a9d9c52cf0158d9dfd458be..49153f2a3c642900110977334506eb21de2729dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-25  Akim Demaille  <demaille@gostai.com>
+
+       Style changes.
+       * etc/bench.pl.in (generate_grammar_list): Consitently use
+       location_type, not yy::location.
+
 2009-02-25  Akim Demaille  <demaille@gostai.com>
 
        Comment change.
index cf4815ef191487eb6705814a8bfa9a83b252deb7..b6143c0877191cbfa6b87e42fdd90d8e540adc1d 100755 (executable)
@@ -688,7 +688,7 @@ yy::parser::token_type yylex(yy::parser::semantic_type* yylval,
   if (stage == STAGE_MAX)
     {
 #if USE_LEX_SYMBOL
-      return yy::parser::make_END_OF_FILE (yy::location());
+      return yy::parser::make_END_OF_FILE (location_type ());
 #else
       *yylloc = location_type ();
       return token::END_OF_FILE;
@@ -697,7 +697,7 @@ yy::parser::token_type yylex(yy::parser::semantic_type* yylval,
   else if (stage % 2)
     {
 #if USE_LEX_SYMBOL
-      return yy::parser::make_NUMBER (stage, yy::location());
+      return yy::parser::make_NUMBER (stage, location_type ());
 #else
 # if defined ONE_STAGE_BUILD
       yylval->build(stage);
@@ -713,7 +713,7 @@ yy::parser::token_type yylex(yy::parser::semantic_type* yylval,
   else
     {
 #if USE_LEX_SYMBOL
-      return yy::parser::make_TEXT ("A string.", yy::location());
+      return yy::parser::make_TEXT ("A string.", location_type ());
 #else
 # if defined ONE_STAGE_BUILD
       yylval->build(std::string("A string."));
@@ -731,10 +731,9 @@ yy::parser::token_type yylex(yy::parser::semantic_type* yylval,
 
 // Mandatory error function
 void
-yy::parser::error(const yy::parser::location_type& yylloc,
-                  const std::string& message)
+yy::parser::error(const yy::parser::location_type& loc, const std::string& msg)
 {
-  std::cerr << yylloc << ": " << message << std::endl;
+  std::cerr << loc << ": " << msg << std::endl;
 }
 
 int main(int argc, char *argv[])