Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
7549535b
Commit
7549535b
authored
Apr 14, 2016
by
Shawn Routhier
Browse files
[trac4269] Updates per review comments, basically change some variable names
parent
75063d9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lib/eval/parser.cc
View file @
7549535b
...
...
@@ -763,8 +763,8 @@ namespace isc { namespace eval {
case
16
:
#line 182 "parser.yy" // lalr1.cc:859
{
TokenPtr
pkt6field
(
new
TokenPkt6
(
yystack_
[
0
].
value
.
as
<
TokenPkt6
::
FieldType
>
()));
ctx
.
expression
.
push_back
(
pkt6field
);
TokenPtr
pkt6
_
field
(
new
TokenPkt6
(
yystack_
[
0
].
value
.
as
<
TokenPkt6
::
FieldType
>
()));
ctx
.
expression
.
push_back
(
pkt6
_
field
);
}
#line 770 "parser.cc" // lalr1.cc:859
break
;
...
...
src/lib/eval/parser.yy
View file @
7549535b
...
...
@@ -180,8 +180,8 @@ string_expr : STRING
}
| PKT6 "." pkt6_field
{
TokenPtr pkt6field(new TokenPkt6($3));
ctx.expression.push_back(pkt6field);
TokenPtr pkt6
_
field(new TokenPkt6($3));
ctx.expression.push_back(pkt6
_
field);
}
;
...
...
src/lib/eval/tests/context_unittest.cc
View file @
7549535b
...
...
@@ -125,8 +125,9 @@ public:
/// @brief checks if the given token is Pkt6 of specified type
/// @param token token to be checked
/// @param type expected type of the Pkt6 field
void
checkTokenPkt6
(
const
TokenPtr
&
token
,
TokenPkt6
::
FieldType
type
)
{
/// @param exp_type expected type of the Pkt6 field
void
checkTokenPkt6
(
const
TokenPtr
&
token
,
TokenPkt6
::
FieldType
exp_type
)
{
ASSERT_TRUE
(
token
);
boost
::
shared_ptr
<
TokenPkt6
>
pkt
=
...
...
@@ -134,7 +135,7 @@ public:
ASSERT_TRUE
(
pkt
);
EXPECT_EQ
(
type
,
pkt
->
getType
());
EXPECT_EQ
(
exp_
type
,
pkt
->
getType
());
}
/// @brief checks if the given expression raises the expected message
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment