diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2014-12-15 16:56:56 +0000 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2014-12-15 16:56:56 +0000 |
commit | 02c305343ba1e25864b77c0381f8bc768927e4a7 (patch) | |
tree | 372844320f2abac1579636198d36ec3a6e7d34eb /wlp/yytest.c | |
parent | c1098b321415976df7b6fc77117046b3b515885d (diff) | |
parent | f65b8f618ed0b59f0c2c14321bbfa9de8e802169 (diff) | |
download | pygn-02c305343ba1e25864b77c0381f8bc768927e4a7.tar.gz |
Merge branch 'testsuite' into 'master'
Testsuite
Hopefully this makes my pyg fork presentable.
See merge request !1
Diffstat (limited to 'wlp/yytest.c')
-rw-r--r-- | wlp/yytest.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/wlp/yytest.c b/wlp/yytest.c new file mode 100644 index 0000000..74c6fe7 --- /dev/null +++ b/wlp/yytest.c @@ -0,0 +1,25 @@ +#include <stdio.h> + +#include "structs.h" +#include "macro.h" + + + +int parse(FILE *file); + +struct wlp_list_t *list; + +int main(int argc,char **argv) { + struct wlp_node_t *tmp; + int count; + + parse(NULL); + + if(list) + for(tmp = list->head, count=0; + tmp != list->head || count == 0; + tmp = tmp->next, count++) + printf("FOUND(%d) '%s' '%s' '%s'\n",count,tmp->left,tmp->right,tmp->owner); + + return(0); +} |