summaryrefslogtreecommitdiff
path: root/src/cparse
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-04-30 21:42:12 +0800
committerAn-Cheng Huang <ancheng@vyatta.com>2011-04-30 21:42:12 +0800
commit1b2a0fd1ae1e6dfc18e4f75f73cd7befb47cf538 (patch)
treed6a43f4d834ee341645bd0005479a7908ee95c6c /src/cparse
parent20935c34d6fad4af9ab27e4a1b934e7e9e375358 (diff)
downloadvyatta-cfg-1b2a0fd1ae1e6dfc18e4f75f73cd7befb47cf538.tar.gz
vyatta-cfg-1b2a0fd1ae1e6dfc18e4f75f73cd7befb47cf538.zip
preliminary implementation of new commit
Diffstat (limited to 'src/cparse')
-rw-r--r--src/cparse/cparse.hpp6
-rw-r--r--src/cparse/cparse.ypp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cparse/cparse.hpp b/src/cparse/cparse.hpp
index c80562a..289813e 100644
--- a/src/cparse/cparse.hpp
+++ b/src/cparse/cparse.hpp
@@ -22,10 +22,8 @@
namespace cparse {
-using namespace cnode;
-
-CfgNode *parse_file(FILE *fin, Cstore& cs);
-CfgNode *parse_file(const char *fname, Cstore& cs);
+cnode::CfgNode *parse_file(FILE *fin, cstore::Cstore& cs);
+cnode::CfgNode *parse_file(const char *fname, cstore::Cstore& cs);
} // namespace cparse
diff --git a/src/cparse/cparse.ypp b/src/cparse/cparse.ypp
index 3b995aa..e70f09a 100644
--- a/src/cparse/cparse.ypp
+++ b/src/cparse/cparse.ypp
@@ -8,6 +8,8 @@
#include "cparse.hpp"
#include "cparse_def.h"
+using namespace cstore;
+using namespace cnode;
using namespace cparse;
/* to enable tracing, define ENABLE_PARSER_TRACE. may also want to invoke