summaryrefslogtreecommitdiff
path: root/src/cparse/cparse.ypp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-11-19 10:23:34 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2010-11-19 10:23:34 -0800
commitcf5a5fb3e38a10532f44c7ea36b46e3c59d5314c (patch)
tree1f7757256f4377815849d889fb759bf73b534251 /src/cparse/cparse.ypp
parent2ea19c29ccf37e05a98790c6f63988889e5d3faa (diff)
downloadvyatta-cfg-cf5a5fb3e38a10532f44c7ea36b46e3c59d5314c.tar.gz
vyatta-cfg-cf5a5fb3e38a10532f44c7ea36b46e3c59d5314c.zip
remove parser debug output and move existence check.
Diffstat (limited to 'src/cparse/cparse.ypp')
-rw-r--r--src/cparse/cparse.ypp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/cparse/cparse.ypp b/src/cparse/cparse.ypp
index ed37932..80d1120 100644
--- a/src/cparse/cparse.ypp
+++ b/src/cparse/cparse.ypp
@@ -42,29 +42,6 @@ static vector<string> pcomps;
static vector<bool> pcomp_is_value;
static void
-print_path()
-{
- printf("[%p,%p] p[", cur_parent, cur_node);
- for (size_t i = 0; i < pcomps.size(); i++) {
- if (i > 0) {
- printf(",");
- }
- printf("%s", pcomps[i].c_str());
- }
- printf("] n[%s]", nname);
- if (nval) {
- printf(" v[%s]", nval);
- }
- if (ncomment) {
- printf(" c[%s]", ncomment);
- }
- if (ndeact) {
- printf(" D");
- }
- printf("\n");
-}
-
-static void
add_node()
{
pcomps.push_back(nname);
@@ -166,11 +143,9 @@ forest: /* empty */
tree: node {
add_node();
- print_path();
}
| node {
add_node();
- print_path();
} LEFTB {
go_down();
} forest RIGHTB {