Skip to content

Commit 18bd947

Browse files
committed
[#3502] Addressed comments
1 parent d2909ed commit 18bd947

File tree

9 files changed

+410
-410
lines changed

9 files changed

+410
-410
lines changed

src/lib/eval/eval_context.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ class EvalContext {
6565
static bool acceptAll(const ClientClass& client_class);
6666

6767
/// @brief Parsed expression (output tokens are stored here)
68-
isc::dhcp::Expression expression;
68+
isc::dhcp::Expression expression_;
6969

7070
/// @brief Label counter.
71-
unsigned label;
71+
unsigned label_;
7272

7373
/// @brief Label stack.
74-
std::vector<unsigned> labels;
74+
std::vector<unsigned> labels_;
7575

7676
/// @brief Method called before scanning starts on a string.
7777
///

src/lib/eval/evaluate.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace dhcp {
2020
/// @param expr the RPN expression, i.e., a vector of parsed tokens
2121
/// @param pkt The v4 or v6 packet
2222
/// @param values The stack of values
23-
/// @throw EvalBadLabel if there is a foreard branch to a not found target.
23+
/// @throw EvalBadLabel if there is a forward branch to a not found target.
2424
void evaluateRaw(const Expression& expr, Pkt& pkt, ValueStack& values);
2525

2626
/// @brief Evaluate a RPN expression for a v4 or v6 packet and return
@@ -33,7 +33,7 @@ void evaluateRaw(const Expression& expr, Pkt& pkt, ValueStack& values);
3333
/// stack at the end of the evaluation
3434
/// @throw EvalTypeError if the value at the top of the stack at the
3535
/// end of the evaluation is not "false" or "true"
36-
/// @throw EvalBadLabel if there is a foreard branch to a not found target.
36+
/// @throw EvalBadLabel if there is a forward branch to a not found target.
3737
bool evaluateBool(const Expression& expr, Pkt& pkt);
3838

3939

@@ -47,7 +47,7 @@ bool evaluateBool(const Expression& expr, Pkt& pkt);
4747
/// stack at the end of the evaluation
4848
/// @throw EvalTypeError if the value at the top of the stack at the
4949
/// end of the evaluation is not "false" or "true"
50-
/// @throw EvalBadLabel if there is a foreard branch to a not found target.
50+
/// @throw EvalBadLabel if there is a forward branch to a not found target.
5151
std::string evaluateString(const Expression& expr, Pkt& pkt);
5252

5353
}; // end of isc::dhcp namespace

src/lib/eval/lexer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3012,7 +3012,7 @@ EvalContext::scanStringBegin(ParserType type)
30123012
start_token_flag = true;
30133013
start_token_value = type;
30143014

3015-
label = 0;
3015+
label_ = 0;
30163016
loc.initialize(&file_);
30173017
eval_flex_debug = trace_scanning_;
30183018
YY_BUFFER_STATE buffer;

src/lib/eval/lexer.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ EvalContext::scanStringBegin(ParserType type)
257257
start_token_flag = true;
258258
start_token_value = type;
259259

260-
label = 0;
260+
label_ = 0;
261261
loc.initialize(&file_);
262262
eval_flex_debug = trace_scanning_;
263263
YY_BUFFER_STATE buffer;

0 commit comments

Comments
 (0)