]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4088fd] Renamed file to file_
authorFrancis Dupont <fdupont@isc.org>
Fri, 6 Nov 2015 03:00:23 +0000 (04:00 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 6 Nov 2015 03:00:23 +0000 (04:00 +0100)
src/lib/eval/eval_context.cc
src/lib/eval/eval_context.h
src/lib/eval/lexer.cc
src/lib/eval/lexer.ll
src/lib/eval/parser.cc
src/lib/eval/parser.yy

index 86f90bda83c270c21de8b678dd9aa9cb14bdcf75..a22e18c72ddb153bf68f53160cafad98f451b2a2 100644 (file)
@@ -29,7 +29,7 @@ EvalContext::~EvalContext()
 int
 EvalContext::parseFile(const std::string &filename)
 {
-    file = filename;
+    file_ = filename;
     scanBegin();
     isc::eval::EvalParser parser(*this);
     parser.set_debug_level(trace_parsing_);
index 80ba4c76fea24bdc3fe6d77ce394c645531ec1b6..401c46b13b3491f3452bad4b9159fd3852175fc2 100644 (file)
@@ -69,7 +69,7 @@ public:
 
     /// @brief The name of the file being parsed.
     /// Used later to pass the file name to the location tracker.
-    std::string file;
+    std::string file_;
 
     /// @brief Error handler
     ///
index 78117d26cc8144de9ca528e4fb182aae8dbf60ea..6d976b7011a30cf7b48887c0b39f130b0a202493 100644 (file)
@@ -2237,11 +2237,11 @@ void
 EvalContext::scanBegin()
 {
     yy_flex_debug = trace_scanning_;
-    if (file.empty () || file == "-") {
+    if (file_.empty () || file_ == "-") {
         yyin = stdin;
     }
-    else if (!(yyin = fopen(file.c_str (), "r"))) {
-        error("cannot open " + file + ": " + strerror(errno));
+    else if (!(yyin = fopen(file_.c_str (), "r"))) {
+        error("cannot open " + file_ + ": " + strerror(errno));
         exit(EXIT_FAILURE);
     }
 }
index 190cd89d545405b6516b67d63b66ca77c651ae47..1d86d9db9064c3d5d134a6c2901824b58c6e8bdb 100644 (file)
@@ -149,11 +149,11 @@ void
 EvalContext::scanBegin()
 {
     yy_flex_debug = trace_scanning_;
-    if (file.empty () || file == "-") {
+    if (file_.empty () || file_ == "-") {
         yyin = stdin;
     }
-    else if (!(yyin = fopen(file.c_str (), "r"))) {
-        error("cannot open " + file + ": " + strerror(errno));
+    else if (!(yyin = fopen(file_.c_str (), "r"))) {
+        error("cannot open " + file_ + ": " + strerror(errno));
         exit(EXIT_FAILURE);
     }
 }
index 1f5066914da5f28b6845e7a1075d2da16f01fee1..19aa6da251fdee4bf8d0802676159e932576270a 100644 (file)
@@ -454,7 +454,7 @@ namespace isc { namespace eval {
     #line 36 "parser.yy" // lalr1.cc:745
 {
   // Initialize the initial location.
-  yyla.location.begin.filename = yyla.location.end.filename = &ctx.file;
+  yyla.location.begin.filename = yyla.location.end.filename = &ctx.file_;
 }
 
 #line 461 "parser.cc" // lalr1.cc:745
index fa7a317d8aa9f08c8d80f6d62483f972db9b1e05..edad29c1c511933f66f8766c8193706555a2c1bb 100644 (file)
@@ -35,7 +35,7 @@ using namespace isc::eval;
 %initial-action
 {
   // Initialize the initial location.
-  @$.begin.filename = @$.end.filename = &ctx.file;
+  @$.begin.filename = @$.end.filename = &ctx.file_;
 };
 %define parse.trace
 %define parse.error verbose