]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4088fd] [4088fd] Fixed namespace
authorFrancis Dupont <fdupont@isc.org>
Fri, 6 Nov 2015 01:22:53 +0000 (02:22 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 6 Nov 2015 01:33:22 +0000 (02:33 +0100)
src/lib/eval/Makefile.am
src/lib/eval/eval_context.h
src/lib/eval/lexer.ll
src/lib/eval/parser.yy

index 0f204f181cf9d371844be430b477a1b7b195ee7e..f71647a4e1dd037e3317070d040a2d64c5fe3052 100644 (file)
@@ -17,7 +17,7 @@ libkea_eval_la_SOURCES += token.cc token.h
 
 libkea_eval_la_SOURCES += parser.cc parser.h
 libkea_eval_la_SOURCES += lexer.cc
-libkea_eval_la_SOURCES += eval_context.cc
+libkea_eval_la_SOURCES += eval_context.cc eval_context.h eval_context_decl.h
 
 nodist_libkea_eval_la_SOURCES = eval_messages.h eval_messages.cc
 
index 2010bacfc9722785e2949425a733931b76243883..80ba4c76fea24bdc3fe6d77ce394c645531ec1b6 100644 (file)
@@ -17,6 +17,7 @@
 #include <string>
 #include <map>
 #include <eval/parser.h>
+#include <eval/eval_context_decl.h>
 #include <exceptions/exceptions.h>
 
 // Tell Flex the lexer's prototype ...
@@ -25,6 +26,9 @@
 // ... and declare it for the parser's sake.
 YY_DECL;
 
+namespace isc {
+namespace eval {
+
 /// @brief Evaluation error exception raised when trying to parse an axceptions.
 class EvalError : public isc::Exception {
 public:
@@ -87,4 +91,8 @@ public:
     bool trace_parsing_;
   
 };
-#endif // ! EVALCONTEXT_H
+
+}; // end of isc::eval namespace
+}; // end of isc namespace
+
+#endif
index 14b5de0d690772306f6affec07b147b3f0841f06..9300b2d3f45f975fda8fd042427f9b39d61c246d 100644 (file)
@@ -161,6 +161,8 @@ option\[{int}\] {
 <<EOF>>    return isc::eval::EvalParser::make_END(loc);
 %%
 
+using namespace isc::eval;
+
 void
 EvalContext::scanBegin()
 {
index ba500124c8d3ac835d70d85c66345381bbefd909..f1b12044c0e44430b5b8fed40839a23d75b2d51a 100644 (file)
 {
 #include <string>
 #include <eval/token.h>
-class EvalContext;
+#include <eval/eval_context_decl.h>
 
 using namespace isc::dhcp;
+using namespace isc::eval;
 }
 // The parsing context.
 %param { EvalContext& ctx }