Mercurial > hg > Applications > Grep
comparison c/regexParser/node.cc @ 117:166136236891 pairPro
add header files
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 25 Nov 2015 14:58:03 +0900 |
parents | 66c633575b53 |
children | 31b0ba0050fa |
comparison
equal
deleted
inserted
replaced
116:66c633575b53 | 117:166136236891 |
---|---|
1 #include <stdio.h> | 1 #include <stdio.h> |
2 #include "regexParser.h" | 2 #include "node.h" |
3 | |
4 static void descendTree(NodePtr,int); | |
5 void printTree(NodePtr); | |
6 | 3 |
7 static void descendTree(NodePtr n, int d) { | 4 static void descendTree(NodePtr n, int d) { |
8 if (n->right != NULL) { | 5 if (n->right != NULL) { |
9 d++; | 6 d++; |
10 descendTree(n->right, d); | 7 descendTree(n->right, d); |