projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
style: minor changes in the Java tests
[bison.git]
/
etc
/
bench.pl.in
diff --git
a/etc/bench.pl.in
b/etc/bench.pl.in
index 59cadee4f906dd1ebb72a5bd7f67b072d80a5096..30d0a996e611a3b73acb871c9e45132686b44879 100755
(executable)
--- a/
etc/bench.pl.in
+++ b/
etc/bench.pl.in
@@
-1,6
+1,6
@@
#! /usr/bin/perl -w
#! /usr/bin/perl -w
-# Copyright (C) 2006, 2008-201
2
Free Software Foundation, Inc.
+# Copyright (C) 2006, 2008-201
3
Free Software Foundation, Inc.
#
# This file is part of Bison, the GNU Compiler Compiler.
#
#
# This file is part of Bison, the GNU Compiler Compiler.
#
@@
-204,9
+204,9
@@
Format the list of directives for Bison for bench named C<$bench>.
sub directives($@)
{
my ($bench, @directive) = @_;
sub directives($@)
{
my ($bench, @directive) = @_;
- my $res = "/* Directives for bench
`
$bench'. */\n";
+ my $res = "/* Directives for bench
'
$bench'. */\n";
$res .= join ("\n", @directive) . "\n";
$res .= join ("\n", @directive) . "\n";
- $res .= "/* End of directives for bench
`
$bench'. */\n";
+ $res .= "/* End of directives for bench
'
$bench'. */\n";
return $res;
}
return $res;
}
@@
-610,8
+610,8
@@
$directives
#if USE_TOKEN_CTOR
yy::parser::symbol_type yylex();
#else
#if USE_TOKEN_CTOR
yy::parser::symbol_type yylex();
#else
- yy::parser::token_type yylex(yy::parser::semantic_type* yylval,
- yy::parser::location_type* yylloc);
+ yy::parser::token_type yylex(yy::parser::semantic_type* yylval
p
,
+ yy::parser::location_type* yylloc
p
);
#endif
// Conversion to string.
#endif
// Conversion to string.
@@
-682,8
+682,8
@@
static
#if USE_TOKEN_CTOR
yy::parser::symbol_type yylex()
#else
#if USE_TOKEN_CTOR
yy::parser::symbol_type yylex()
#else
-yy::parser::token_type yylex(yy::parser::semantic_type* yylval,
- yy::parser::location_type* yylloc)
+yy::parser::token_type yylex(yy::parser::semantic_type* yylval
p
,
+ yy::parser::location_type* yylloc
p
)
#endif
{
typedef yy::parser::location_type location_type;
#endif
{
typedef yy::parser::location_type location_type;
@@
-695,7
+695,7
@@
yy::parser::token_type yylex(yy::parser::semantic_type* yylval,
#if USE_TOKEN_CTOR
return yy::parser::make_END_OF_FILE (location_type ());
#else
#if USE_TOKEN_CTOR
return yy::parser::make_END_OF_FILE (location_type ());
#else
- *yylloc = location_type ();
+ *yylloc
p
= location_type ();
return token::END_OF_FILE;
#endif
}
return token::END_OF_FILE;
#endif
}
@@
-705,13
+705,13
@@
yy::parser::token_type yylex(yy::parser::semantic_type* yylval,
return yy::parser::make_NUMBER (stage, location_type ());
#else
# if defined ONE_STAGE_BUILD
return yy::parser::make_NUMBER (stage, location_type ());
#else
# if defined ONE_STAGE_BUILD
- yylval->build(stage);
+ yylval
p
->build(stage);
# elif USE_VARIANTS
# elif USE_VARIANTS
- yylval->build<int>() = stage;
+ yylval
p
->build<int>() = stage;
# else
# else
- yylval->ival = stage;
+ yylval
p
->ival = stage;
# endif
# endif
- *yylloc = location_type ();
+ *yylloc
p
= location_type ();
return token::NUMBER;
#endif
}
return token::NUMBER;
#endif
}
@@
-721,13
+721,13
@@
yy::parser::token_type yylex(yy::parser::semantic_type* yylval,
return yy::parser::make_TEXT ("A string.", location_type ());
#else
# if defined ONE_STAGE_BUILD
return yy::parser::make_TEXT ("A string.", location_type ());
#else
# if defined ONE_STAGE_BUILD
- yylval->build(std::string("A string."));
+ yylval
p
->build(std::string("A string."));
# elif USE_VARIANTS
# elif USE_VARIANTS
- yylval->build<std::string>() = std::string("A string.");
+ yylval
p
->build<std::string>() = std::string("A string.");
# else
# else
- yylval->sval = new std::string("A string.");
+ yylval
p
->sval = new std::string("A string.");
# endif
# endif
- *yylloc = location_type ();
+ *yylloc
p
= location_type ();
return token::TEXT;
#endif
}
return token::TEXT;
#endif
}